1.0.5 • Published 9 months ago
safecrypts v1.0.5
��
SafeCrypt Usage
Installation
npm install safecrypt
## Usage
const SafeCrypt = require('safecrypt');
// Generate a hashed password
const plainPassword = 'mySecurePassword';
const hashedPassword = SafeCrypt.generateHash(plainPassword);
// Compare a password with the hashed password
const isMatch = SafeCrypt.compareHash(plainPassword, hashedPassword);
console.log('Password Match:', isMatch);
.Note: Replace 'mySecurePassword' with the actual password you want to hash and compare.