Archives

April 2004 (7)
March 2004 (12)
February 2004 (12)
January 2004 (22)
December 2003 (19)
November 2003 (16)
October 2003 (26)
September 2003 (18)
August 2003 (38)
July 2003 (80)
June 2003 (13)
May 2003 (24)
April 2003 (76)
March 2003 (75)
February 2003 (51)
January 2003 (73)

Category

Family (5)
FYI (18)
Games (2)
Geek (88)
Geographic (3)
Hacks (13)
Home (15)
Humor (54)
Ideas (20)
Ideaspace (15)
Local (15)
Metadata (10)
Microsoft (2)
MovableType (5)
Nitwits (66)
PKI (2)
Politics (22)
Quotes (3)
RDF (15)
RSS (4)
Security (3)
Semantic Web (13)
Site Info (13)
Social Networks (1)
Spam (9)
Sysadmin (1)
Tips (2)
Tivo (2)
TMFTOTHD (1)
To Do (1)
Unlisted (1)
Web (3)
Windows (1)

Local

« MetroBlogs »
DC metroblogs
beltway bloggers

Links


Assorted bits

Blogroll Me!
GeoURL
Listed on BlogShares




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...

Comments
Post a comment






* if you do not leave a valid e-mail or URL your comment may be deleted *







Navigation

Recent Entries

America and Europe: Vive la différence?
Server changes afoot
Diet behavior mod
Googling for sensitive info
Outlook 2003 and IMAP, a marriage made in Hell
Bike to Work Day, May 7th
Speakeasy rocks
Zippo USB?
When geographic data is nowhere 'near' correct
Local campaign contributions

User comments
Trackbacks

Contact

send me an e-mail E-mail
chat with me using MS messenger MSN Messenger
chat with me via AIM America Online
chat with me on ICQ ICQ
chat with me on Yahoo! Yahoo
Add my vCard to your electronic addressbook vCard
Friend of a Friend FoaF

Syndication

XML  RDF  CDF

Comments

XFML

Extra Stuff

foaf
vCard
pgp info
Linked In
Powered by
Movable Type 2.64