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

Want to know Encryption type AES128 or AES256 is used? #388

Open
aadi0923 opened this issue Sep 15, 2021 · 1 comment
Open

Want to know Encryption type AES128 or AES256 is used? #388

aadi0923 opened this issue Sep 15, 2021 · 1 comment

Comments

@aadi0923
Copy link

I want AES-256 to encypt my data. I have used this but don't know which encryption type is used.
If i want to use AES-256 with this how can i do it.

@jmp
Copy link

jmp commented Oct 3, 2021

This is a bit late, but the symmetric encryption uses AES-128 (see #135), which is the default in PostgreSQL.

There doesn't seem to be a way to use AES-256 or other cipher algorithm. It would be possible if django-pgcrypto-fields let you pass custom parameters (e.g. cipher-algo=aes256) for the pgp_sym_encrypt function, however at the moment that can't be done.

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