Creates a hashing object that can then be fed with data repeatedly, and from which you can extract a hash digest whenever you want.
Parameter | Type | Description |
---|---|---|
algorithm | string | The name of the hashing algorithm you want to use. Can be any one of "md4", "md5", "sha1", "sha256", "sha384", "sha512", "sha512_224", "sha512_256", "ripemd160". |
Returns
Type | Description |
---|---|
object | A Hasher object. |
Example
The above script should result in the following being printed during execution: