consistent pcp/pbp formats
stef
s at ctrlc.hu
Fri Feb 14 01:52:03 PST 2014
On Thu, Feb 06, 2014 at 08:24:12PM +0100, Thomas von Dein wrote:
> 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
fuck yeah! ;)
> [1]: currently pbp shows pcp keys as "invalid", I'm not sure why,
> but it's on the todo list.
ooh, thx, will check that!
> 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.
sign+crypt? why? crypt also does mac automatically. no need for sign+crypt at
all.
--
pgp: https://www.ctrlc.hu/~stef/stef.gpg
pgp fp: FD52 DABD 5224 7F9C 63C6 3C12 FC97 D29F CA05 57EF
otr fp: https://www.ctrlc.hu/~stef/otr.txt
More information about the cypherpunks
mailing list