You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not familiar with pgcrypto in Postgres. The problem though sounds like a general encoding issue, where the data is being marked as UTF8, but contains invalid UTF-8 data.
You can try converting the data to binary before decrypting it.
Hi,
I have a scenario where we have data that is already encrypted using a different key.
I now want to migrate this data to use SymmetricEncryption & the key generated by SymmetricEncryption
I am using the pgcrypto package in postgres to migrate this data.
The decrypt function works okay as the data was encrypted using
pgp_sym_encrypt
My migration decrypts the column and then tries to encrypt the column using
SymmetricEncryption.cipher.key
When the migration runs, I get the following error
My key is:
\v\x96\x1C\xAE\xAD\xD6r\x96f\xD4kJT\xEB#\x01\xDC\x06\x98\xD3f\xA0+z\xF3?qg\x18\xE1\x1D\xD8
I know my questing is vague, but can you suggest some pointers to how you might perform this migration?
Thanks,
Kunal
The text was updated successfully, but these errors were encountered: