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

Problems with Spaces and Return #14

Open
binarious opened this issue Sep 4, 2013 · 1 comment
Open

Problems with Spaces and Return #14

binarious opened this issue Sep 4, 2013 · 1 comment

Comments

@binarious
Copy link

The problem is the usage of trim() in https://github.com/vmelnik-ukraine/DoctrineEncryptBundle/blob/master/Encryptors/AES256Encryptor.php#L32.

It should be a rtrim() with a second parameter "\0". In rare cases the first or last character of the encrypted value could be a space or return, the decryption goes wrong

http://stackoverflow.com/questions/3422759/php-aes-encrypt-decrypt#comment13920165_3422787

@westinpigott
Copy link
Contributor

I believe this is addressed by #18. It makes use of the rtrim.

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