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

How to set the IV? #7

Open
silentbug00 opened this issue Jun 9, 2022 · 2 comments
Open

How to set the IV? #7

silentbug00 opened this issue Jun 9, 2022 · 2 comments

Comments

@silentbug00
Copy link

I have encrypted file created using Rijndael256+CBC with PHP language. After I decrypt it with lockbox2, I found the decrypted file is missing first 16 bytes/characters. And after I check both of the codes, it turns out the different between them is the PHP code set the IV (initialization vector) but my pascal code don't, because lockbox doesn't provide the property for that. Could you add this feature? Thanks

@jarto
Copy link
Owner

jarto commented Jun 9, 2022

Sorry but I can't do this. If someone else takes it on, I'll be happy to merge it into LockBox.

@silentbug00
Copy link
Author

silentbug00 commented Jun 9, 2022

Btw, I've solve the issue in my code by xor-ing first 16 chars of the decrypted string with the (16 bytes) iv value from the php code. But I need time to add this to the component. If I'm not too lazy to do that :)

update: this trick is not working :(. Maybe I did something else than this, I forgot... Silly me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants