gistlib
index.tsxconst crypto = require('crypto'); function hashPassword(password) { const hash = crypto.createHash('sha256'); hash.update(password); return hash.digest('hex'); } const password = 'mySecurePassword123'; const hashedPassword = hashPassword(password); console.log(hashedPassword); 292 chars12 lines
const crypto = require('crypto'); function hashPassword(password) { const hash = crypto.createHash('sha256'); hash.update(password); return hash.digest('hex'); } const password = 'mySecurePassword123'; const hashedPassword = hashPassword(password); console.log(hashedPassword);
gistlibby LogSnag