Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const { createHash } = require('crypto');
function hash(string) {
return createHash('sha256').update(string).digest('hex');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment