🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@matware/joomla-hash-node

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@matware/joomla-hash-node

A node.js module helper for Joomla! hash comparison

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
7
-22.22%
Maintainers
1
Weekly downloads
 
Created
Source

joomla-hash-node

Generate and compare Joomla! password hashes

How to install:

$ npm install joomla-hash-node

usage:

const hasher = require('joomla-hash-node');

const password = '123456';
const bcryptHash = '$2y$10$FZxS6C14KVCZhskklnFVx.FPd0CdIx8cb.aif2Vecz/FaLxM4qsgi';
const phpassHash = '$P$BzHMWwAio4pPqp1wuwdc18X8HoFIrd1';
const wrongPassword = '$P$B6o85rwWL8eNMkSeQCRvgEziznOScd.';

// Encode password
var hash = hasher.hash(password).then(
    hash => console.log("Joomla! hash for password: " + password + " is: " + hash)
);

// Compare bcrypt
var checkBcrypt = hasher.check(password, bcryptHash);
console.log("Bcrypt password checking results: " + checkBcrypt);

// Compare Phpass
var checkPhpass = hasher.check(password, phpassHash);
console.log("PHPass password checking results: " + checkPhpass);

// Compare wrong password
var wrongCheck = hasher.check(password, wrongPassword);
console.log("Wrong password checking results: " + wrongCheck);

Keywords

joomla

FAQs

Package last updated on 04 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts