I am generating HMAC-SHA1 without key in C# and it returns every time different hash for same value, how can I match hashes,
My code is https://dotnetfiddle.net/3a3tiP
- is it possible or not to match these hashes?
- I think HMAC-SHA1 not possible without key Am I right?
- If above 'Yes' then why C# allow to generate without key and how is it doing?
Yes, because you are using parameterless constructor to build HMACSHA1 instance, and MSDN says
Just add some constant key and you'll get same hash every time. e.g.
And answering your questions: