Skip to content

Instantly share code, notes, and snippets.

@nickfogle
Last active January 6, 2021 15:34
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 nickfogle/ea69fb0204a4441e8d846c1d523de550 to your computer and use it in GitHub Desktop.
Save nickfogle/ea69fb0204a4441e8d846c1d523de550 to your computer and use it in GitHub Desktop.
const crypto = require("crypto");
const user_hash = crypto.createHmac(
"sha256",
"CK_SECRET" // API KEY
).update(req.user.stripeId).digest("hex"); // Send to front-end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment