npm.io
1.0.5 • Published 3 years ago

safecrypts

Licence
ISC
Version
1.0.5
Deps
0
Size
2 kB
Vulns
0
Weekly
0

��

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.


Keywords