1.0.0 • Published 6 years ago
s256 v1.0.0
Generate a SHA-256 hash from a string in Node.js
Generates a lowercase-hex encoded hash from any string in Node.js.
For those who are tired of typing crypto.createHash('sha256').update(str).digest('hex');
.
Usage
const sha256 = require('s256');
console.log(sha256('secret_password_123'));
1.0.0
6 years ago