password-crygen
v1.0.0
Published
Downloads
1
Readme
password-crypto
Generate password hash
import { generatePasswordHash } from 'password-crypto';
const password = '123qwe';
const passwordHash = generatePasswordHash(password);
Check password
import { checkPassword } from 'password-crypto';
const passwordToChech = '123qwe';
const passwordHash = 'hex...';
const isSame = checkPassword(passwordToChech, passwordHash);