The problem is this, I have this portion of code in C # that generates a token.
SHA256Managed hashstring = new SHA256Managed();
byte[] hash = hashstring.ComputeHash(Encoding.ASCII.GetBytes("araña"));
string StringByte = BitConverter.ToString(hash);
Console.WriteLine("bytes :" + StringByte);
//writeline = f686964edf1e0feea8a50cd1352efa94196d6f19bd22ff7abad706ff15852d2e
while in nodejs I try it in the following way
var hash = crypto.createHash('sha256').update('araña','ASCII').digest('hex')
//hash = 2b0231711496dae7e431deb1cc05b714ce1faabc9e742a1c7eb479ccd76ed6df
I can not make them coincide and it should be noted that the error is only when the keyword has a 'Ñ', my code is the node code and the code of C # can not be modified, thank you in advance for your help