CryptoMd5
Used to generate SHA1 hashes of data. As SHA1 is not 100% secure anymore, please use with caution. This ought to only be used for compatibility with legacy systems and not used in any new system.
- namespace CryptoMd5
class Md5Hash[link]
Creates a new empty instance of an SHA1 hash.
Methods from CryptoCommon.AbstractHash can be used to add data to the hash and to digest it.
Typical usage: hash = new Sha1Hash().addText("Hello, World").digestHex();
new Md5Hash(suppressWarning)[link]
Creates a new instance of the SHA1 hash and, by default, prints out a warning message about it being unsafe.
Arguments
Name | Type | Optional | Description |
---|---|---|---|
suppressWarning | string | Optional | This parameter will suppress the warning if you pass in the string 'unsafe'. |