lib/hash.js
/**
 * Generates a hexidecimal SHA-256 hash from the provided string.
 */
Generates a hexidecimal SHA-256 hash from the provided string.
Generates a hexidecimal SHA - 256 hash from the provided string .
function hash(str) {
    if (!str) return '';
    const shaHash = createHash('sha256');
    return shaHash.update(str).digest('hex');
}
function hash ( str ) { if ( ! str ) return '' ; const shaHash = createHash ( 'sha256' ) ; return shaHash . update ( str ) . digest ( 'hex' ) ; }
Generates a hexidecimal SHA-256 hash from the provided string.
Generates a hexidecimal SHA - 256 hash from the provided string .