Try replacing _passwordSaltthis function GenerateSalt()with one of my projects:
protected RNGCryptoServiceProvider random = new RNGCryptoServiceProvider();
public byte[] GenerateSalt() {
byte[] salt = new byte[10];
random.GetNonZeroBytes(salt);
return salt;
}
By the way, you need to save this generated salt. You need the same salt every time to check your password.
source
share