using System.Security.Cryptography;
using CryptSharp.Utility;
// Compute a 128-byte derived key using HMAC-SHA256, 1000 iterations, and a given key and salt.
byte[] derivedKey = Pbkdf2.ComputeDerivedKey(new HMACSHA256(key), salt, 1000, 128);
using System.IO;
using System.Security.Cryptography;
using CryptSharp.Utility;
// Create a stream using HMAC-SHA512, 1000 iterations, and a given key and salt.
Stream derivedKeyStream = new Pbkdf2(new HMACSHA512(key), salt, 1000);
XMany
operator.
block word digest SHA-1 512 32 160 SHA-256 512 32 256 SHA-384 1024 64 384 SHA-512 1024 64 512