1.0.1 • Published 2 years ago

@azcro/fos-encoder v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Installation:

npm i @azcro/fos-encoder

Usage:

const fos = require('@azcro/fos-encoder');

const password = 'VerySecuredPassword';
const salt = 'Sb573aRXw2V0in3YpF.xeasGGqA2PeBL64GH9cHnCFs';

var encoded = fos.encodePassword(password, salt, 'sha512', 5000);
var isValid = fos.isPasswordValid(encoded, password, salt);

console.log(encoded, isValid);

Only works with sha512, im working on bcrypt.

1.0.1

2 years ago

1.0.0

2 years ago