Created
August 12, 2015 22:25
-
-
Save Qard/0ffc057d3335e6c72acd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var algorithm = crypto.getHashes()[0] | |
var hash = crypto.createHash(algorithm) // crypto entry | |
hash.update('foo') | |
fs.readFile(__filename, function (err, data) { | |
hash.update('bar') | |
var hashed = hash.digest() // crypto exit | |
done() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment