Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Optional IV for Encryption #3543

Open
itlancer opened this issue Oct 26, 2024 · 0 comments
Open

[Feature Request] Optional IV for Encryption #3543

itlancer opened this issue Oct 26, 2024 · 0 comments
Labels

Comments

@itlancer
Copy link

Feature Description

Please consider IV (Initialization Vector) argument as optional for Encryption.encrypt() and Encryption.decrypt().
Sometimes data encoded by AES-CBC without IV and it should be decoded somehow (of course it more vulnerable). Right now IV argument mandatory to use Encryption functions.
I think AIR should have a way to use these functions without IV.
https://stackoverflow.com/a/20888967
https://anycript.com/crypto

Related issue: #229

Known Workarounds

Pass IV argument as ByteArray with 16 zero bytes:

var iv:ByteArray = new ByteArray();
iv.length = 16;
Encryption.encrypt(data, key, iv);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant