I'm using the following code under B4A, B4J and B4I to encrypt and decrypt files. But now, I have mentioned, that if i use data=Cipher.Decrypt(data, Password) with a wrong password under b4i, I don't get an exception like under b4A or b4j. How can I check, if the password is wrong? In my case, the sub decryptfile decrypts the file with the wrong password and kills the file:
Code:
encryptFile(File.DirAssets, "test1.jpg", File.DirLibrary, "crypt_test.jpg")
decryptFile(File.DirLibrary,...
from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/297FBHt
via IFTTT
Aucun commentaire:
Enregistrer un commentaire