Skip to main content

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
TypeName
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
TypeName
System.StringData
System.StringHash
System.StringSalt

VerifyHash(Byte[], Byte[], Byte[])

View Source
Declaration
public bool VerifyHash(byte[] Data, byte[] Hash, byte[] Salt)
Returns

System.Boolean

Parameters
TypeName
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
TypeName
System.StringData
System.StringHash
System.StringSalt

Implements