Encryption.decrypt()
should throw exception if decryption fails
#3545
Labels
Encryption.decrypt()
should throw exception if decryption fails
#3545
Problem Description
Encryption.decrypt()
should throw exception if decryption fails. If data corrupted or incorrect key/IV.Right now there is no way to check if decryption failed.
Tested with multiple AIR 51 versions, even with latest AIR 51.1.2.1 with different applications, different corrupted data, wrong key/IV.
AIR anyway return some
ByteArray
as a decrypted data result.You can check what expected with https://anycript.com/crypto or other libs.
Related issues:
#3544
#3543
#229
Steps to Reproduce
Launch application with code below.
It just try to decrypt some random base64 bytes.
Application sample with sources attached.
encryption_decrypt_bug.zip
Actual Result:
AIR "decrypt" data and return some bytes:
}%�è7�pàÛlҫ"ι�
Expected Result:
Exception should be throwed cause decryption process should be failed.
Known Workarounds
none
The text was updated successfully, but these errors were encountered: