(rand-base64-string n)
Generates base64-encoded string of n bytes
Generates base64-encoded string of n bytes
(rand-bool)
Returns a cryptographically random boolean
Returns a cryptographically random boolean
(rand-bytes n)
Generate an array of n cryptographically random bytes
Generate an array of n cryptographically random bytes
(rand-hex-string n)
Generates hex-encoded string of n bytes
Generates hex-encoded string of n bytes
(rand-int32)
(rand-int32 max)
(rand-int32 min max)
Returns a value between -2^31 and 2^31, exclusive of upper bound. When called with no argument, or one argument for upper bound, defaults to a lower bound of 0.
Returns a value between -2^31 and 2^31, exclusive of upper bound. When called with no argument, or one argument for upper bound, defaults to a lower bound of 0.
(rand-passphrase length wordlist)
(rand-passphrase length wordlist delimiter)
Generates passphrase from a wordlist, optionally taking delimiter (defaults to -).
Generates passphrase from a wordlist, optionally taking delimiter (defaults to -).
(rand-password length mask-or-opts)
Generates password, either from a character mask (provided as string), or a collection of mask option keywords. Mask options: :upper adds A-Z :lower adds a-z :digits adds 0-9 :special adds !@#$%^&*-_+= :non-ambiguous removes O01Il
Generates password, either from a character mask (provided as string), or a collection of mask option keywords. Mask options: :upper adds A-Z :lower adds a-z :digits adds 0-9 :special adds !@#$%^&*-_+= :non-ambiguous removes O01Il
(rand-selection coll)
(rand-selection coll n)
Returns a cryptographically random element from a collection, or a character from a string. Can take a count as the second argument to return a sequence of selections.
Returns a cryptographically random element from a collection, or a character from a string. Can take a count as the second argument to return a sequence of selections.
(rand-uuid)
Generates a cryptographically random UUIDv4
Generates a cryptographically random UUIDv4
(rand-web-token n)
Generates URL-safe base64-encoded string of n bytes
Generates URL-safe base64-encoded string of n bytes
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close