Re: Question about cryptography and public/private keys
- From: Erich Kohl <ekohl@xxxxxxxxxxxxx>
- Date: Fri, 03 Nov 2006 03:09:10 GMT
On 2 Nov 2006 16:16:49 -0800, "Matthew Fanto" <mfanto@xxxxxxxxx>
wrote:
Erich Kohl wrote:
Ah, of course! And you *know* that the message came from a fraudulent
source if your private key couldn't unlock the ciphered data because
of its direct relationship to the *public* key. If the private key
doesn't work on it, the message wasn't encrypted with the proper
corresponding PUBLIC key. And ONLY YOU can decrypt messages meant for
YOU, because your private key is, well, private. ;-)
Am I understanding this correctly? I think I am.
Yep, you got encryption down. Encrypting with the public key though
doesn't do anything to prove if the other person is fraudulent. Imagine
a big phone book of public keys. Anyone can look up your public key and
send you a message. That doesn't prove anything.
So here is where we use a digital signature. I actually use my private
key to "encrypt" the data. Remember that what one key does, the other
key undoes. That means that if it's encrypted with my private key, the
public key decrypts it. So if you signed a message with your private
key, I would then go look up your public key in the phone book. I would
apply that public key to the message. Since only you could have used
your private key, if the public key "works" then I know it must have
come from you*.
*there are technical details like hash functions, and more details to
signatures, but you get the idea.
But here's another question . . . who hands out these keys? Where are
they stored? Is it the job of things like VeriSign to do that?
It depends what you are going to use your keypair for. Verisign (or
Geotrust, or a number of others) will give out keys along with
certificates (they sign the certificate with your public key in it) if
you are using SSL. Or, you can generate your own certificates and
public/private keys for webservers (this has a few issues associated).
Or if you work for an enterprise, they might give you a keypair. You
can have tons of different keys. There is no universal authority for
giving them out, although Verisign would love to become that universal
authority.
-Matt
I noticed in my Internet browser's list of certificates, a certificate
is shown which represents my bank (I do a fair amount of online
banking).
I'm assuming this means that when I connect to my bank's website, the
transactions I do on it are encrypted. Are keys transferred back and
forth during a banking session like that? Which side sends which
keys?
.
- Follow-Ups:
- Re: Question about cryptography and public/private keys
- From: SecurityBulletins.com
- Re: Question about cryptography and public/private keys
- References:
- Question about cryptography and public/private keys
- From: Erich Kohl
- Re: Question about cryptography and public/private keys
- From: Matthew Fanto
- Re: Question about cryptography and public/private keys
- From: Erich Kohl
- Re: Question about cryptography and public/private keys
- From: Matthew Fanto
- Question about cryptography and public/private keys
- Prev by Date: Re: Malicious javascript obfustication
- Next by Date: Re: MS WORD launches slowly due to IE local security setting
- Previous by thread: Re: Question about cryptography and public/private keys
- Next by thread: Re: Question about cryptography and public/private keys
- Index(es):
Relevant Pages
|