MD5/SHA1 LotusScript Examples
I finally created an example database for the MD5 and SHA1 hashing libraries.
The database contains an “Example” form that allows you to either hash or HMAC hash a text string. Fill out the fields and click the “Hash!” button.
If you debug the button (or look at the code) you will notice that I use four declared classes: HMAC_SHA1, SHA1, HMAC_MD5, and MD5.
All four classes require the text to be sent in the constructor. The HMAC classes also require a “key” due to the nature of HMAC.
All four classes expose three functions: toStr (string), toHex, toB64 (Binary64). These are the results of the hash. My example form returns the results in Hex because that is what the SlavaSoft HashCalc tool uses.
Link to the Example database: MD5/SHA1 Example Database