March 05, 2003
Testing pgp to gnupg interop
If you've got the same keys in both system's keyrings this should work:
echo 'hello world' | pgp -fe [yourhexid] | gpg --decrypt
Replace [yourhexID] with your own, sans the [] brackets. Mine's 0x79F14C94 but you wouldn't use it here. What you're doing is echo'ing the 'hello world' text into pgp and encrypting it for delivery to your own key. The results are then sent to gpg for decryption with that same key. You should get the 'hello world' text back.
This proves that your pgp key can create an encrypted message that the same gpg key can decrypt. This would be rather important if you expected to use PKI to handle things like postbacks from messages as you post them in different comment sections. Hint, hint...
There are some interop issues with using pgp and gnupg simultaneously. I've not yet pinned them all down. One thing's for certain, be sure you're using GnuPG v1.2.1 or greater. I'd been banging my head trying to make 1.0.7 handle pgp 6.5.8's keyrings. I'm not entirely certain but I think having a non-1024 bit key was bugging that version of GnuPG. Trouble is now I'm off on a bug hunt getting the latest GnuPG and it's dependencies compiled. Oh they joys of unix software...







