GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SNOBOL4DIGEST(3) CSNOBOL4 Manual SNOBOL4DIGEST(3)

digest - message digest library


-INCLUDE 'digest.sno'
	handle = DIGEST_INIT(algorithm)
	DIGEST_UPDATE(handle,string)
	bytes = DIGEST_FINAL(handle)
	string = DIGEST_HEX(bytes)
	bytes = DIGEST(algorithm,string)

The digest module performs cryptographic Message Digest calculations.

DIGEST_INIT takes a digest algorithm name (as listed by openssl help) and returns an opaque handle to an object. Not all algorithms are implemented by all versions of the openssl library. Older algorithms have known collision weaknesses, Newer algorithms (and longer hash outputs) are slower!

DIGEST_UPDATE incorporates the string into the hash. Additional calls should produce the same result as concatenating the input strings to a single update call.

DIGEST_FINAL returns a string of binary bytes with the hash value and deletes the object and handle.

DIGEST_HEX takes a string of binary bytes and returns a string of lower case hex string.

DIGEST takes an algorithm name and a string to hash, and returns binary bytes.

See snobol4zlib(3) for CRC32 and ADLER32 hash algorithms.

snobol4(1), openssl(1), snobol4zlib(3).

Phil Budne
March 31, 2022 CSNOBOL4B 2.3.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.