1SNOBOL4DIGEST(3) CSNOBOL4 Manual SNOBOL4DIGEST(3)
2
3
4
6 digest - message digest library
7
9 -INCLUDE 'digest.sno'
10 handle = DIGEST_INIT(algorithm)
11 DIGEST_UPDATE(handle,string)
12 bytes = DIGEST_FINAL(handle)
13 string = DIGEST_HEX(bytes)
14 bytes = DIGEST(algorithm,string)
15
17 The digest module performs cryptographic Message Digest calculations.
18
19 DIGEST_INIT takes a digest algorithm name (as listed by openssl help)
20 and returns an opaque handle to an object. Not all algorithms are
21 implemented by all versions of the openssl library. Older algorithms
22 have known collision weaknesses, Newer algorithms (and longer hash
23 outputs) are slower!
24
25 DIGEST_UPDATE incorporates the string into the hash. Additional calls
26 should produce the same result as concatenating the input strings to a
27 single update call.
28
29 DIGEST_FINAL returns a string of binary bytes with the hash value and
30 deletes the object and handle.
31
32 DIGEST_HEX takes a string of binary bytes and returns a string of lower
33 case hex string.
34
35 DIGEST takes an algorithm name and a string to hash, and returns binary
36 bytes.
37
38 See snobol4zlib(3) for CRC32 and ADLER32 hash algorithms.
39
41 snobol4(1), openssl(1), snobol4zlib(3).
42
44 Phil Budne
45
46
47
48CSNOBOL4B 2.3.1 March 31, 2022 SNOBOL4DIGEST(3)