[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

consistent pcp/pbp formats



So, here we go:

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

# alice exports her pk
alicia@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@io: % pbp -X -i alice.pbp 
Success: imported public keys for Alicia

bobby@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@io: % pcp -P -I bob.pbp -b
key 0x87358A0988953A67 added to ~/.pcpvault.

alicia@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@io: % echo "HALLO ALICE, KNUTSCHI" > msg
bobby@io: % pbp -c -i msg -o encrypted -r Alicia -S Bob
Passphrase for decrypting encryption subkey for Bob:

# alice decrypts it
alicia@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@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@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.