SHA1

digest

defn

(Fn [(Ref (Array Byte) a)] (Array Byte))

                        (digest data)
                    

computes the SHA-1 digest of a byte array, returning 20 bytes.

hex-digest

defn

(Fn [(Ref (Array Byte) a)] String)

                        (hex-digest data)
                    

computes the SHA-1 digest of a byte array and returns it as a 40-character lowercase hex string.