Hi Giovanni,
1) I don't want to send the private key.
2) I'm not sure I get what's the advantage here. I'd need two sets of keys
here, right?
One to sign/verify and the other to encrypt.
I'm not sure I explained my problem properly, so here is what I'm
trying to do: if I
encrypt with my private key, anybody with my public key can decrypt the data
and verify
it's mine. Why not just sign? I'd rather avoid having the data easily read by
anybody with
a text editor to avoid people trying to edit "the readable part" and wondering
why it
doesn't work.
AFAIK there's no theoretical problem in encrypting with the private key
(that part works
with openpgpjs) and decrypting with the public key (it fails here, as I
explained in the
original post). So I'm wondering it this can be done.
Thanks!
> Bruno you have two possibilities:
> 1) sign detached the plaintext and encrypt using the private sending them
> both.
> 2) sign and then encrypt the signed data sending a single encrypted
> blob hiding even the signature.
> _______________________________________________
>
> http://openpgpjs.org
> Subscribe/unsubscribe: http://list.openpgpjs.org
> .
>
_______________________________________________
http://openpgpjs.org
Subscribe/unsubscribe: http://list.openpgpjs.org