I need to port some python code into c# and I'm having some trouble with this line:
Python
hmac.new(key, message,digestmod=hashlib.sha256).digest()
C#
HMACSHA256 hm = new HMACSHA256(key);
byte[] result = hm.ComputeHash(enc.GetBytes(message));
Why am I getting a different result in C# when key and message are the same (checked byte-by-byte) ?