Hello PGP

Can you use PGP programmatically?


Discuss The Problem

Prove you can use PGP programmatically. The following message was encrypted with OpenPGP symmetric encryption using the command:

$ printf [secret message] | gpg -c
The password used was a single English word. Recover the message.
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1

jA0ECQMC8YL5GvIZ2m5g0ksB9aj386dbfatZ28jsaLEKtUcRLVjjHHIBmHvCIrxf
RIeH7NLMcfQ+3Z+/ktIu3Drocg9zoiP1eaJ6aUUpa6fLy0OPjIIpG9tM/Mo=
=S+SO
-----END PGP MESSAGE-----

Test Vector

Test your implementation by decrypting the following message. It was encrypted with the password "password" and the clear text is "hello world"
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1

jA0ECQMCIFOMjWmWTZZg0kABHIkMAZskzkav2QZQAJStGv3k1WuWZt7pVozy1HMV
s25QGzQIE6Yri4K3JJKwCkWVlB69lt6Oq2NqACELxXoT
=zze7
-----END PGP MESSAGE-----