Skip to content

Instantly share code, notes, and snippets.

@nolim1t
Created October 8, 2017 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nolim1t/220ec259696e1f003b7a5b952b33710e to your computer and use it in GitHub Desktop.
Save nolim1t/220ec259696e1f003b7a5b952b33710e to your computer and use it in GitHub Desktop.
Generate Monero Payment ID
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);
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