Re: Basic question: Public-key encryption
- From: Ilmari Karonen <usenet2@xxxxxxxxxxxxxx>
- Date: 7 Jun 2008 16:03:22 GMT
On 04.06.2008, Tomás Ó hÉilidhe <toe@xxxxxxxxxxx> wrote:
What is this whole "digital signature" thing? I've heard of it but I
don't know anything about it.
It's something very similar to public-key encryption, except that it
sort of works in reverse: where public-key encryption ensures that
anyone can send a message but only you can read it, a digital
signature allows anyone to read the message but confirms that it was
sent by you.
What's so wrong with encrypting a message with my private key and also
the recipient's public key in order to ensure both encryption and
authentification?
Nothing, except that the algorithm used for encryption is designed to
ensure secrecy, but not necessarily authenticity. A signature is the
other way around: it guarantees authenticity, but provides no secrecy
on its own.
Actually, the underlying operations are _very_ similar in some ways,
and what a digital signature does probably _is_ pretty much what you
think of as "encrypting with the private key". You really only need
to consider the difference if you're planning to write your own
encryption software.
[re: public key databases]
What's to stop someone poisoning the database? I mean what's to stop
me submitting a new key for your e-mail address?
_If_ you can read my e-mail, and _if_ I have no other way to prove my
identity except being able to read my e-mail, then not much.
There is one way, though: it's called "key signing", and allows
someone who knows me personally, or has some other way to confirm my
identity, to vouch that they believe the key really belongs to me.
The reason it's called "signing" is that the way it essentially works
is by them writing a (special, machine-readable) message saying "I am
John Doe, I know Joe Blow and swear that FOOBAR is really their public
key" and digitally signing it with their own private key.
Another solution, of course, is to build your identity upon the key in
the first place: if you identify yourself online as "the guy with the
public key A7F1052C...", it's pretty hard for anyone to pretend to be
you without knowing your private key.
See also:
http://en.wikipedia.org/wiki/Key_authentication
http://en.wikipedia.org/wiki/Public_key_infrastructure
http://en.wikipedia.org/wiki/Web_of_trust
--
Ilmari Karonen
To reply by e-mail, please replace ".invalid" with ".net" in address.
.
- References:
- Basic question: Public-key encryption
- From: Tomás Ó hÉilidhe
- Re: Basic question: Public-key encryption
- From: Gil
- Re: Basic question: Public-key encryption
- From: Tomás Ó hÉilidhe
- Basic question: Public-key encryption
- Prev by Date: Re: Future safe PK-methods?
- Next by Date: Re: Can this be decrypted ?
- Previous by thread: Re: Basic question: Public-key encryption
- Next by thread: Re: Basic question: Public-key encryption
- Index(es):
Relevant Pages
|
|