Skip to content

reiugit/PasswordHashingWithSalting

Repository files navigation

Password Hashing with Salting

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

Releases

No releases published

Packages

No packages published

Languages