Closed TheSeriousProgrammer closed 3 years ago
Yeah. If you put in the wrong key, the decryption behavior is actually unspecified. It could either return gibberish (unlikely) or throw an error (more likely).
If this is something that happens regularly, I recommend you just wrap decryption in a try-catch that will display a "wrong password" message.
Yes that's what I did , thanks for the awesome library!!
Decryption with corrrect password works flawlessly but wrong password for decryption in AES raises FormatException , is this an expected behaviour?