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:
- Define the digest algorithm with the
security.Digest.CreateDigest
method. - Add data to the digest buffer with methods such as
security.Digest.AddData
,security.Digest.AddBase64Data
,security.Digest.AddHexBinaryData
,security.Digest.AddStringData
. - When all data pieces are added, the buffer can be processed by calling
methods like
security.Digest.DoBase64Digest
orsecurity.Digest.DoHexBinaryDigest
.
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.