Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
ON THIS PAGE
|
...
...
Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
ON THIS PAGE
|
...
This object allows you to generate a variety of message digests. The JavaScript equivalent is the Node.js Crypto API.
Object Creation: The hashing algorithm is specified when creating the roHashGenerator object.
Code Block |
---|
CreateObject("roHashGenerator", algorithm As String) |
The algorithm parameter accepts the following strings:
"SHA256"
"SHA384"
"SHA512"
"SHA1"
"MD5"
"CRC32"
...
CRC32 is only available on firmware versions 4.4.x or later.
Hashes the payload, which can be supplied in the form of a string (or any object implementing ifString) or an roByteArray. The hash is returned as an roByteArray.
Supplies a cryptographic key for the hashing function. This method accepts a plain-text key.
Supplies a cryptographic key for the hashing function. This method accepts a key that is obfuscated using a shared secret.