digest u8vector - part-cw/lambdanative GitHub Wiki
(digest-u8vector u8vect start end algorithm #!optional result-type)
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)