Open mrtcn opened 9 years ago
First of all thanks for the great library This is actually not a big issue but on how to use section
Android hashes the key as follows; string key = CryptLib.getHashSha256("my secret key", 31); C# hashes as follows; String key = CryptLib.SHA256("my secret key", 32); //32 bytes = 256 bit
Which gave us at the beginning different results then I have changed the C# code to use 32bytes and results were identical.
Thanks for reporting this one! I'll test and fix the code accordingly.
First of all thanks for the great library This is actually not a big issue but on how to use section
Android hashes the key as follows; string key = CryptLib.getHashSha256("my secret key", 31); C# hashes as follows; String key = CryptLib.SHA256("my secret key", 32); //32 bytes = 256 bit
Which gave us at the beginning different results then I have changed the C# code to use 32bytes and results were identical.