Liking cljdoc? Tell your friends :D

hasch.core

Hashing functions for EDN.

Hashing functions for EDN.
raw docstring

b64-hashclj/s

(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.
sourceraw docstring

edn-hashclj/s

(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.
sourceraw docstring

hash->strclj/s

source

squuidclj/s

(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
sourceraw docstring

uuidclj/s

(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.
sourceraw docstring

uuid4clj/s

source

uuid5clj/s

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close