customed-bcrypt

Custom bcrypt

Usage no npm install needed!

<script type="module">
  import customedBcrypt from 'https://cdn.skypack.dev/customed-bcrypt';
</script>

README

Customed Bcrypt Build Status

Functions:

/**
 * @method comparePWD Compare password vs hash code
 * @param pwd any
 * @param hash any
 * @returns boolean
 */
function comparePWD(pwd: any, hash: any): boolean;
/**
 * @method hashPWD: Hash password
 * @param pwd
 * @param salt
 * @returns string | undefined
 */
function hashPWD(pwd: any, salt: string | number = genSaltSync()): string | undefined;