hashcat Forum
HMAC-SHA1 - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Support (https://hashcat.net/forum/forum-3.html)
+--- Forum: hashcat (https://hashcat.net/forum/forum-45.html)
+--- Thread: HMAC-SHA1 (/thread-7893.html)



HMAC-SHA1 - fedorov83 - 10-26-2018

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)));
       }



RE: HMAC-SHA1 - undeath - 10-26-2018

convert the output bytes to hex