TransWikia.com

Is there any way to get the output of pgp_sym_encrypt of pgcrypto using Pycryptodome?

Stack Overflow Asked on November 10, 2021

I have a pandas dataframe where some columns are already encrypted using pgp_sym_encrypt of postgres. The password used in that encryption is known to me and the encryption is done using aes256 algorithm.

After some data manipulation, I have added some new columns which I want to encrypt in the exact same manner.

To do the encryption, I have to call a REST API on each cell of new columns which will be typically slow. I was wondering if the same can be achieved using Pycryptodome library, given that we know the password and the algorithm to be used.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP