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

Length must be greater than 0 at error #63

Open
aniskasmi opened this issue Nov 25, 2021 · 4 comments
Open

Length must be greater than 0 at error #63

aniskasmi opened this issue Nov 25, 2021 · 4 comments

Comments

@aniskasmi
Copy link

aniskasmi commented Nov 25, 2021

Hi,

I work on Symfony 5.3

My Config

ambta_doctrine_encrypt: secret_key: AB1CD2EF3GH4IJ5KL6MN7OP8QR9ST0UW # Your own random 256 bit key (32 characters) encrypted_suffix: <ENC> # or any other string that you wish that won't cause issues with your DB encryptor: AES-256 # AES-256 or AES-192 encryptor_class: \Ambta\DoctrineEncryptBundle\Encryptors\AES256Encryptor # your own encryption class

Error

[2021-11-25T20:46:24.972605+01:00] request.CRITICAL: Uncaught PHP Exception Error: "Length must be greater than 0" at /Users/aniskasmi/Documents/Workspace/Agri-Recrute/vendor/ambta/doctrine-encrypt-bundle/Ambta/DoctrineEncryptBundle/Encryptors/AES256Encryptor.php line 44 {"exception":"[object] (Error(code: 0): Length must be greater than 0 at /Users/aniskasmi/Documents/Workspace/Agri-Recrute/vendor/ambta/doctrine-encrypt-bundle/Ambta/DoctrineEncryptBundle/Encryptors/AES256Encryptor.php:44)"} []

@aniskasmi
Copy link
Author

@ambta

@maczuk
Copy link

maczuk commented Nov 27, 2021

Same issue here. I'm using Symfony 5.3 and PHP8.

@aniskasmi
Copy link
Author

@maczuk I change library to h2entwicklung/doctrine-encrypt-bundle Work perfectly :)

@maczuk
Copy link

maczuk commented Nov 27, 2021

@skPink thanks! Following your hint, I've used https://github.com/absolute-quantum/DoctrineEncryptBundle

Works! 👍

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