Created
February 17, 2014 10:12
-
-
Save pkyeck/9048021 to your computer and use it in GitHub Desktop.
Revisions
-
pkyeck created this gist
Feb 17, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ var crypto = require("crypto"); var hash1 = crypto.createHash("sha256"); hash1.update("topsecret", "utf8"); console.log(hash1.digest("base64")); // UzNqZ2xkwTllU7K3yS84EmdognyTtk2RQgacEO2npyE= var hash2 = crypto.createHash("sha256"); hash2.update("topSecret", "utf8"); console.log(hash2.digest("base64")); // mFuUzsUvYbRLt21+34+fwP6IpapAhqBLsbycLnGfQIc=