Liking cljdoc? Tell your friends :D

uniformity.hash


hashes-equal?clj/s

(hashes-equal? hash1 hash2)

Compares equality of two hashes by comparing every element to inhibit timing attacks.

Compares equality of two hashes by comparing every element
to inhibit timing attacks.
sourceraw docstring

md5clj/s

(md5 bytes & {:keys [format] :or {format :hex}})

Produces a MD5 hash of input bytes. Optional :format parameter determines output: :bytes :hex (default) :base64 :base64-urlsafe

Produces a MD5 hash of input bytes.
Optional :format parameter determines output:
  :bytes
  :hex (default)
  :base64
  :base64-urlsafe
sourceraw docstring

sha1clj/s

(sha1 bytes & {:keys [format] :or {format :hex}})

Produces a SHA-1 hash of input bytes. Optional :format parameter determines output: :bytes :hex (default) :base64 :base64-urlsafe

Produces a SHA-1 hash of input bytes.
Optional :format parameter determines output:
  :bytes
  :hex (default)
  :base64
  :base64-urlsafe
sourceraw docstring

sha256clj/s

(sha256 bytes & {:keys [format] :or {format :hex}})

Produces a SHA-256 hash of input bytes. Optional :format parameter determines output: :bytes :hex (default) :base64 :base64-urlsafe

Produces a SHA-256 hash of input bytes.
Optional :format parameter determines output:
  :bytes
  :hex (default)
  :base64
  :base64-urlsafe
sourceraw docstring

sha384clj/s

(sha384 bytes & {:keys [format] :or {format :hex}})

Produces a SHA-384 hash of input bytes. Optional :format parameter determines output: :bytes :hex (default) :base64 :base64-urlsafe

Produces a SHA-384 hash of input bytes.
Optional :format parameter determines output:
  :bytes
  :hex (default)
  :base64
  :base64-urlsafe
sourceraw docstring

sha512clj/s

(sha512 bytes & {:keys [format] :or {format :hex}})

Produces a SHA-512 hash of input bytes. Optional :format parameter determines output: :bytes :hex (default) :base64 :base64-urlsafe

Produces a SHA-512 hash of input bytes.
Optional :format parameter determines output:
  :bytes
  :hex (default)
  :base64
  :base64-urlsafe
sourceraw docstring

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

× close