Hashing functions for EDN.
Hashing functions for EDN.
(b64-hash val)
Provides a base64 encoded string of the edn-hash of a value val. This contains all bits of the hash compared to 128 bits for the UUID-5. Both should be safe, but b64-hash is safer towards collisions.
Provides a base64 encoded string of the edn-hash of a value val. This contains all bits of the hash compared to 128 bits for the UUID-5. Both should be safe, but b64-hash is safer towards collisions.
(edn-hash val)
(edn-hash val write-handlers)
(edn-hash val md-create-fn write-handlers)
Hash an edn value with SHA-512 by default or a compatible hash function of choice.
Please use the write-handlers only in legacy cases and rather extend the PHashCoercion protocol to your own types.
Hash an edn value with SHA-512 by default or a compatible hash function of choice. Please use the write-handlers only in legacy cases and rather extend the PHashCoercion protocol to your own types.
(squuid)
(squuid uuid)
Calculates a sequential UUID as described in https://github.com/clojure-cookbook/clojure-cookbook/blob/master/01_primitive-data/1-24_uuids.asciidoc
Calculates a sequential UUID as described in https://github.com/clojure-cookbook/clojure-cookbook/blob/master/01_primitive-data/1-24_uuids.asciidoc
(uuid)
(uuid val & {:keys [write-handlers]})
Creates random UUID-4 without argument or UUID-5 for the argument value.
Optionally an incognito-style write-handlers map can be supplied, which describes record serialization in terms of Clojure data structures.
Creates random UUID-4 without argument or UUID-5 for the argument value. Optionally an incognito-style write-handlers map can be supplied, which describes record serialization in terms of Clojure data structures.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close