security.Digest.CreateDigest

Defines a new digest context by specifying the algorithm to be used.

Syntax

security.Digest.CreateDigest(
   algo STRING )
  RETURNS security.Digest
  1. 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"

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).