navneet83 / Cross-platform-AES-encryption

Basic cross platform AES encryption
Apache License 2.0
320 stars 152 forks source link

Error in "HowToUse.cs" #31

Open giaesp opened 8 years ago

giaesp commented 8 years ago

Hello, I think there's a typo in "HowToUse.cs" At line 7

string key = CryptLib.getHashSha256("my secret key", 31);

There is "31": this causes a wrong padding exception in asp.net c# code. I was testing encryption on Android side and decryption on C# server-side. Using value "32" everything works fine.