npm.io
1.0.0 • Published 2 years ago

sharonhall

Licence
ISC
Version
1.0.0
Deps
8
Size
2 kB
Vulns
0
Weekly
0

Sharonhall

A Node.js module providing cryptographic utility functions.

Installation

You can install this module via npm: npm install sharonhall

Usage

const { generateRandomString, hashPassword, comparePassword } = require('crypto-utils');

// Generate a random string
const randomString = generateRandomString(10);
console.log('Random String:', randomString);

// Hash a password
const password = 'myPassword';
hashPassword(password).then(hash => {
  console.log('Password Hash:', hash);

  // Compare a password with its hash
  comparePassword(password, hash).then(match => {
    console.log('Password Matches:', match); // true
  });
});