Created
October 8, 2017 20:47
-
-
Save nolim1t/220ec259696e1f003b7a5b952b33710e to your computer and use it in GitHub Desktop.
Generate Monero Payment ID
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 crypto = require("crypto"); | |
var ts = new Date().getTime(); | |
var seed1 = crypto.createHash("md5").update(ts.toString()).digest("hex").toString(); | |
var seed2 = crypto.createHash("md5").update((ts - 1337).toString()).digest("hex").toString(); | |
console.log(seed1 + seed2); |
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
node -e 'var crypto = require("crypto"); console.log(crypto.createHash("md5").update(new Date().getTime().toString()).digest("hex").toString() + crypto.createHash("md5").update((new Date().getTime() - 1337).toString()).digest("hex").toString());' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment