A small Clojure library for generating cryptographically secure random bytes and strings.
Add the following dependency to your project.clj
file:
[crypto-random "1.2.1"]
Returns a random byte array of the specified size.
Return a random base64 string of the specified size in bytes.
Return a random base32 string of the specified size in bytes.
Return a random hex string of the specified size in bytes.
Return a random string suitable for being inserted into URLs. The size denotes the number of bytes to generate.
Copyright © 2020 James Reeves
Distributed under the Eclipse Public License, the same as Clojure.