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

Returns the digest of the substring, using the specified algorithm

Parameter Description
str String to digest
start Start index
end End index
algorithm Algorithm to use: crc32, md5, sha-1, sha-224 or sha-256
result-type Type of result: hex or u8vector

Example

> (digest-substring "test" 0 2 'md5)  
"569ef72642be0fadd711d6a468d68ee1"
> (digest-substring "test" 0 2 'md5 'u8vector)
#u8(86 158 247 38 66 190 15 173 215 17 214 164 104 214 142 225)
Clone this wiki locally