I am sha1 hashing in js like that:
Js(crypto-js’)
var requestString = generateRequestString(obj);
var hashSha1 = CryptoJS.SHA1(test+apiKey+requestString);
var hashInBase64 = CryptoJS.enc.Base64.stringify(hashSha1);
return hashInBase64
I am try to sha1 hashing in .net but results are diffrent.
using var sha1 = SHA1.Create();
byte[] hashBytes = sha1.ComputeHash(Encoding.UTF8.GetBytes(test+apiKey+requestString);
string hashInBase64 = Convert.ToBase64String(hashBytes);
What can i do to getting same result from .net