public static Compute384Base64 ( IEnumerable |
||
Data | IEnumerable |
The data to be hashed. Takes an array of bytes. |
Salt | IEnumerable |
The salt value used to help prevent dictionary attacks. Takes an array of bytes. |
리턴 | string |
public static string Compute384Base64(IEnumerable<byte> Data, IEnumerable<byte> Salt)
{
var TD = new List<byte>(Data);
var TS = new List<byte>(Salt);
//The Salt Algorithm
TD.AddRange(TS);
foreach (byte b in TS)
{
TD.Insert(0, b);
TD.Insert(TD.Count - 1, b);
}
return Convert.ToBase64String(SHA384.ComputeHash(TD.ToArray()));
}
Hash::Compute384Base64 ( System Data ) : string | |
Hash::Compute384Base64 ( byte Data ) : string | |
Hash::Compute384Base64 ( string Data ) : string |