Created
July 13, 2013 07:12
-
-
Save mclasson/5989751 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rfc2898DeriveBytes k1 = new Rfc2898DeriveBytes(_password, _salt, 10000); | |
var _saltedPasswordHash = k1.GetBytes(12); | |
Debug.WriteLine(Convert.ToBase64String(_saltedPasswordHash)); | |
_saltedPasswordHash = k1.GetBytes(12); | |
Debug.WriteLine(Convert.ToBase64String(_saltedPasswordHash)); | |
Rfc2898DeriveBytes k2 = new Rfc2898DeriveBytes(_password, _salt, 10000); | |
_saltedPasswordHash = k2.GetBytes(24); | |
Debug.WriteLine(Convert.ToBase64String(_saltedPasswordHash)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment