var cookie = require('cookie'); var crypto = require('crypto'); var hash = crypto.createHash('sha256').update('password').digest('hex'); console.log(hash);