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)));        }
#2
convert the output bytes to hex