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

avoid encryption on null values #4

Open
gtrombi opened this issue May 26, 2021 · 0 comments
Open

avoid encryption on null values #4

gtrombi opened this issue May 26, 2021 · 0 comments

Comments

@gtrombi
Copy link

gtrombi commented May 26, 2021

Hi, thanks for this very useful extension. I have a question: I have a model attribute that can be null, but if is not, then it must be unique. This check is performed at database level. As far as I understand, the encryption is performed on null fields as well, therefore producing an integrity violation at database level, since the encrypted string resulting from encrypting '' (which is the value of the blank field left as null) is actually not null. Is there already a way to prevent this, or I should work on it? Thank you very much

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

1 participant