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