HMAC-SHA1
#1
This is my c# code to generate password hash. How do i get this to hashcat mode 160 and format with hash : salt cause key (this must be the salt) and decoded base64 outputs me byte code like Õ+{[xrGÏÎç˜l®9M ?
Code:
       public string EncodePassword(string password)
       {
           string str = password;
           HMACSHA1 hmacsha1 = new HMACSHA1
           {
               Key = this.HexToByte(this.machineKey.ValidationKey)
           };
           return Convert.ToBase64String(hmacsha1.ComputeHash(Encoding.Unicode.GetBytes(password)));
       }


Messages In This Thread
HMAC-SHA1 - by fedorov83 - 10-26-2018, 01:16 AM
RE: HMAC-SHA1 - by undeath - 10-26-2018, 10:14 AM