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

encrypt data before query #66

Open
licarigianluca opened this issue Mar 30, 2023 · 1 comment
Open

encrypt data before query #66

licarigianluca opened this issue Mar 30, 2023 · 1 comment

Comments

@licarigianluca
Copy link

Hi,
good work, I appreciated it. How can I find a function to encrypt data in the same method the bundle use? I need this to encrypt data before running query.

thx

@dev-marcel
Copy link
Collaborator

Hi licarigianluca,

You can use the encryptor service, load this service with DI and then use ->encrypt('your string');
https://github.com/ambta/DoctrineEncryptBundle/blob/master/Services/Encryptor.php

But know that this bundle isn't actively maintained or futher developed anymore.

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