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

Unique Constraint #22

Open
edmondsylar opened this issue Dec 1, 2020 · 1 comment
Open

Unique Constraint #22

edmondsylar opened this issue Dec 1, 2020 · 1 comment

Comments

@edmondsylar
Copy link

Is there a way that I can ensure that the data in a filed is unique?
This is in relation to the unencrypted data after fetching it, because since the encrypted values are always different, this kind of disregards the uniqueness of the actual data.

Is there a way around this?

@nite1984
Copy link

nite1984 commented May 6, 2021

I think the only way to do this is to create a column with the hashed unencrypted value.
Hashes are always the same for the same input value, so you can use that column to ensure the field is unique.

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