D DouglasNYoung Active Member Licensed User Longtime User Mar 4, 2012 #1 I'm using Write/ReadEncryptedObject with a Random Access File which works just fine if the password is correct! However if the user enters the wrong password the system crashes with:= java.lang.RuntimeException: Invalid environment blah, blah, blah Caused by: javax.crypto.BadPaddingException: pad block corrupted Anybody know how to test for this/trap this before the system crash? Thanks in advance, Dougla
I'm using Write/ReadEncryptedObject with a Random Access File which works just fine if the password is correct! However if the user enters the wrong password the system crashes with:= java.lang.RuntimeException: Invalid environment blah, blah, blah Caused by: javax.crypto.BadPaddingException: pad block corrupted Anybody know how to test for this/trap this before the system crash? Thanks in advance, Dougla
S susu Well-Known Member Licensed User Longtime User Mar 4, 2012 #2 Did you try exception? Basic4android - Core Upvote 0
D DouglasNYoung Active Member Licensed User Longtime User Mar 4, 2012 #3 susu, Thanks, that did the trick! Easy when you know how! Douglas Upvote 0