The gribble bot in Bitcoin-OTC uses gpg auth (http://wiki.bitcoin-otc.com/wiki/GPG_authentication) and is open source. You can find the source here:http://gribble.sourceforge.net/