in reply to generate pgp5 code Crypt::OpenPGP
Go through this page,I guess it may help you.Adding a public key to your keyring