- SaltSize = 16
- HashSize = 32
- Iterations = 100000
- HashAlgorithm = SHA512
salt = RandomNumberGenerator.GetBytes(saltSize); hashBytes = Rfc2898DeriveBytes.Pbkdf2(password, salt, iterations, hashAlgorithmName, hashSize); hashString = Convert.ToHexString(hashBytes);