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

Create unique contraint for encrypted or hashed column #40

Closed
therockstorm opened this issue Jun 21, 2022 · 0 comments
Closed

Create unique contraint for encrypted or hashed column #40

therockstorm opened this issue Jun 21, 2022 · 0 comments

Comments

@therockstorm
Copy link

I want to create a unique constraint on an encrypted column, but since it's :binary (which gets stored as bytea in Postgres), the unique index doesn't work as expected. I followed the _hash instructions, but that value is stored as :binary too, so has the same limitation. Am I'm missing something or is this functionality not supported? Is there a way to store the value as a base64 string instead of binary?

@therockstorm therockstorm changed the title Create unique contraint for encrypted column Create unique contraint for encrypted or hashed column Jun 21, 2022
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