How to encrypt data with Postgresql pgp_sym_encrypt in Python?
Previously, I used this method to encrypt data: update test_encrypt set encrypted_data = encode(pgp_sym_encrypt(origin_data ::text, '123456', 'cipher-algo=aes256, compress-algo=0'), 'base64') where origin_data is not null and origin_data != ''; Now I want to implement the same logic in Python, so that…