Skip to content

Instantly share code, notes, and snippets.

@inscapist
Last active October 21, 2021 09:11
Show Gist options
  • Save inscapist/5d1f0db8c96b2d1904cb7f9f881f83f9 to your computer and use it in GitHub Desktop.
Save inscapist/5d1f0db8c96b2d1904cb7f9f881f83f9 to your computer and use it in GitHub Desktop.
Generate random cryptographic nonce/salt with buddy, in clojure
(-> 16
nonce/random-bytes
codecs/bytes->b64u
codecs/bytes->str)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment