The Digest class

The security.Digest class implements digest algorithms to process data.

This class is provided in the security C-Extension library; To use this class, import the security package with:
IMPORT security

The class implements several methods that allow you to add data piece by piece and process these data with a specified digest algorithm.

Steps to process data with a digest algorithm:
  1. Define the digest algorithm with the security.Digest.CreateDigest method.
  2. Add data to the digest buffer with methods such as security.Digest.AddData, security.Digest.AddBase64Data, security.Digest.AddHexBinaryData, security.Digest.AddStringData.
  3. When all data pieces are added, the buffer can be processed by calling methods like security.Digest.DoBase64Digest or security.Digest.DoHexBinaryDigest.
Alternatively, a simple data string can be processed with the security.Digest.CreateDigestString method.
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.