One way to perform multi-hash in C# is by using the System.Security.Cryptography
namespace.
Here's an example of how to perform multi-hash using SHA256 and SHA512 algorithms:
main.cs711 chars29 lines
You can call the Compute
method by passing a string data as parameter, which will return the multi-hash in base64 string format.
Note that multi-hash is a concept about concatenation of multiple hash functions, so the order of hashes concatenation and the hash function used are up to you.
gistlibby LogSnag