Skip to content
Chris Petersen edited this page Sep 18, 2015 · 1 revision

Returns the digest of the u8vector, using the specified algorithm

Parameter Description
u8vect u8vector to digest
algorithm Algorithm to use: crc32, md5, sha-1, sha-224 or sha-256
result-type Type of result: hex or u8vector

Example

> (digest-u8vector (u8vector 1 2 3 4) 'sha-1) 
"12dada1fff4d4787ade3333147202c3b443e376f"
> (digest-u8vector (u8vector 1 2 3 4) 'sha-1 'u8vector)
#u8(18 218 218 31 255 77 71 135 173 227 51 49 71 32 44 59 68 62 55 111)
Clone this wiki locally