SaltedHash
Thank you Martijn http://www.dijksterhuis.org/creating-salted-hash-values-in-c/
Stronger/Slower Alternative: https://github.com/defuse/password-hashing/blob/master/PasswordStorage.cs
Assembly: ServiceStack.dll
View Source
Declaration
public class SaltedHash : IHashProvider
Methods
GetHashAndSalt(Byte[], out Byte[], out Byte[])
View Source
Declaration
public void GetHashAndSalt(byte[] Data, out byte[] Hash, out byte[] Salt)
Parameters
Type | Name |
---|---|
System.Byte[] | Data |
System.Byte[] | Hash |
System.Byte[] | Salt |
GetHashAndSaltString(String, out String, out String)
View Source
Declaration
public void GetHashAndSaltString(string Data, out string Hash, out string Salt)
Parameters
Type | Name |
---|---|
System.String | Data |
System.String | Hash |
System.String | Salt |
VerifyHash(Byte[], Byte[], Byte[])
View Source
Declaration
public bool VerifyHash(byte[] Data, byte[] Hash, byte[] Salt)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Byte[] | Data |
System.Byte[] | Hash |
System.Byte[] | Salt |
VerifyHashString(String, String, String)
View Source
Declaration
public bool VerifyHashString(string Data, string Hash, string Salt)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | Data |
System.String | Hash |
System.String | Salt |