The Digest class
The security.Digest class implements digest algorithms to process
data.
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.CreateDigestmethod. - 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.DoBase64Digestorsecurity.Digest.DoHexBinaryDigest.
security.Digest.CreateDigestString
method.