security.Digest.CreateDigest
Defines a new digest context by specifying the algorithm to be used.
Syntax
security.Digest.CreateDigest(
algo STRING )
RETURNS security.Digest
- algo defines the digest algorithm to be used.
Usage
Use this method to create and initialize a digest context to compute data digest based on the specified algorithm.
Available digest algorithms are:
"SHA1"
"SHA224"
"SHA256"
"SHA384"
"SHA512"
"MD5"
Note:
MD5 digest is not recommended and may not be available on the system running Genero due to certain security configurations or the version of OpenSSL used.
In case of error, the method throws an exception and sets the
status
variable. Depending on the error, a human-readable description of the
problem is available in the sqlca.sqlerrm
register. See Error handling in GWS calls (status).