Last active
August 29, 2015 14:16
-
-
Save janl/f7af55be5336007e8229 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 hash = crypt.createHash('sha256'); | |
- hash.update(assetData); | |
- return hash.digest('hex'); | |
+ return crypt.createHash('sha256') | |
+ .update(assetData) | |
+ .digest('hex'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Another possible way:
Longer, but I would prefer it.