11.2 XPRIM_Crypto_Hash

Calculates a hash value of a sequence of bytes.

The algorithms currently supported:

Use the Compute method to calculate a hash using the currently selected algorithm

To choose the algorithm to use in the computation, invoke one of the Use . . . methods (UseMD5, UseSHA256, and so on). The selected algorithm by default is SHA-256.

The sequence of bytes is represented by XPRIM_Binary.

If you want to hash a string (instead of a sequence of bytes), XPRIM_Binary provides methods to convert a string into a sequence of bytes


Additional Resources