security.Digest.AddStringDataWithCharset

Adds a data string to the digest buffer, after converting to the specified character set.

Syntax

security.Digest.AddStringDataWithCharset(
   toDigest STRING,
   charset STRING )
  1. toDigest defines the human-readable character string to be added to the digest buffer.
  2. charset defines the charset to be used.

Usage

This method adds the specified string data based on the given charset to the digest buffer.

Before adding the string, it is converted from the local DVM charset to the specified encoding.

After adding all the data pieces, the buffer can be processed by calling security.Digest.DoBase64Digest or security.Digest.DoHexBinaryDigest.

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