security.Digest.CreateDigest

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

Syntax

security.Digest.CreateDigest(
   algo STRING )
  1. algo is the digest algorithm to be used.

Usage

Creates and initializes a digest context to compute data digest according to the given 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).