I am using PostgreSQL 9.3.5
and trying to encrypt data using pgp_pub_encrypt() offered by pgcrypto extension. Running SELECT pgp_pub_encrypt('Vipin', dearmor('gpg_public_key')) throws an error Corrupt ascii-armor. Please help.
I am using
I am using PostgreSQL 9.3.5
and trying to encrypt data using pgp_pub_encrypt() offered by pgcrypto extension. Running SELECT pgp_pub_encrypt('Vipin', dearmor('gpg_public_key')) throws an error Corrupt ascii-armor. Please help.
I am using
You should put the entire key into pgp_pub_encrypt parameter like this :