consistent pcp/pbp formats

Thomas von Dein tom at vondein.org
Thu Feb 6 11:24:12 PST 2014


So, here we go:

# bob exports his pk
bobby at io: % pbp -x -S Bob > bob.pbp
Passphrase for decrypting master key for Bob: 

# alice exports her pk
alicia at io: % pcp -p -b -O alice.pbp
Enter passphrase to decrypt your secret key for signing the export: 
public key exported in PBP format.

# bob imports alice' pk
bobby at io: % pbp -X -i alice.pbp 
Success: imported public keys for Alicia

bobby at io: % pbp -l
valid b888 026a 38e2 cdf7 f0a6 6486 63a5 0fea Bob
invalid ed32 1935 0310 fe6f 35c6 b44d be6b 3ca8 Alicia   [1]


# alice imports bobs pk
alicia at io: % pcp -P -I bob.pbp -b
key 0x87358A0988953A67 added to ~/.pcpvault.

alicia at io: % pcp -l
Key ID               Type      Creation Time        Owner
0xB497AFF45654CD98   primary   2014-02-06T19:58:09  Alicia <>
0x87358A0988953A67    public   2014-02-06T18:58:02  bob <>

# bob encrypts to alice
bobby at io: % echo "HALLO ALICE, KNUTSCHI" > msg
bobby at io: % pbp -c -i msg -o encrypted -r Alicia -S Bob
Passphrase for decrypting encryption subkey for Bob:

# alice decrypts it
alicia at io: % pcp -d -I encrypted 
Enter passphrase to decrypt your secret key: 
HALLO ALICE, KNUTSCHI
Decrypted 22 bytes successfully

# other way around, alice encrypts to bob
alicia at io: % echo "ACH, SCHNUCKI" | pcp -e -O encrypted -r Bob
Enter passphrase to decrypt your secret key: 
Encrypted 164 bytes for:
bob <>

# and bob decrypts it
bobby at io: % pbp -d -i encrypted -S Bob
Passphrase for decrypting encryption subkey for Bob: 
ACH, SCHNUCKI
good message from Alicia




[1]: currently pbp shows pcp keys as "invalid", I'm not sure why,
but it's on the todo list.

Also, I didn't test if signatures are compatible yet, and there are many
more things left to solve/agree, like keyformats, sign+crypt support in
pbp, among others.



best regards,
Tom

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the cypherpunks mailing list