Calculating SHA-1 hashes in Java and C#
Calculating SHA-1 hashes in Java and C# I'm trying to replicate the logic of a Java application within a C# application. Part of this involves generating an SHA-1 hash of a password. Unfortunately I can't get the same results from Java and C#. C# Output : 64 0a b2 ba e0 7b ed c4 c1 63 f6 79 a7 46 f7 ab 7f b5 d1 fa Java Output: 164 10a b2 ba e0 17b ed c4 c1 163 f6 179 a7 146 f7 ab 17f b5 d1 fa To try and figure out what is happening I've been using the Debugger in Eclipse and Visual Studio. 1. Check values of byte[] key: Java: { 84, 101, 115, 116 } C# : { 84, 101, 115, 116 } 2. Check value of