Skip to content

Decrypt for postgresql's native encrypt function? #28

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

Closed
Cifer-Y opened this issue Oct 15, 2021 · 1 comment
Closed

Decrypt for postgresql's native encrypt function? #28

Cifer-Y opened this issue Oct 15, 2021 · 1 comment

Comments

@Cifer-Y
Copy link

Cifer-Y commented Oct 15, 2021

Now I have a legacy database, a column is encrypted by PGP_SYM_ENCRYPT.

I wonder if I can use cloak_ecto to deal with that?

@danielberkompas
Copy link
Owner

I'm not familiar with Postges's native encryption. It may be possible to develop a custom cipher module that is capable of decrypting the ciphertext though. See the docs on Cloak.Cipher: https://hexdocs.pm/cloak/Cloak.Cipher.html

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