Replies: 2 comments 9 replies
-
Hi, what is the question? Do you get an error, or? |
Beta Was this translation helpful? Give feedback.
0 replies
-
The decrypt fails.. any idea what am I doing wrong?
…On Mon, Nov 13, 2023, 18:04 larabr ***@***.***> wrote:
Hi, what is the question?
—
Reply to this email directly, view it on GitHub
<#1698 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3V64PI2ODLFFJOIRBR3TDYEJAJVAVCNFSM6AAAAAA7H6H44SVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKNJVHAYTA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Take a look at the following snippet, it defines a buffer representing the db value (
encryptedValueFromDatabase
)I'm using Postgres 13, and according to the docs (F.25.3.8.1. cipher-algo)
when using
pgp_sym_encrypt
the default cipher is aes128 with no compression.I'm using openpgp@5.11.0.
P.S
I verified that using the same key with Postgres decryption function works (
pgp_sym_decrypt
), but that is on the DB level and doesn't help.I have also tried to encrypt the value using openpgp, it seems the created byte array it creates is far smaller then the one created by
pgp_sym_encrypt
Beta Was this translation helpful? Give feedback.
All reactions