Re: Cryptography problem
From: Dean Hallman (deanh_at_sc.rr.com)
Date: 06/23/04
- Next message: Jim Grimmett: "Re: Cryptography problem"
- Previous message: Dean Hallman: "Re: Cryptography problem"
- In reply to: Mailman: "Re: Cryptography problem"
- Next in thread: Lassi Hippeläinen: "Re: Cryptography problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 23 Jun 2004 15:51:14 GMT
> This is known as the "known plaintext" problem, and modern
> cryptosystems are pretty much immune to it (since Kasisky's days it
> has been an axiom that the security of a system depends only on the
> key - even if the attacker knows the exact encryption algorithm and
> contents being sent).
Ahh.. Thanks. Being new to cryptography, this helps.
> BTW - why would you need to send the user
> name/password as part of the request?
Each request could be spaced minutes or even days apart.
>
> Replay attacks (reusing a request without knowing what it means): this
> is usually dealt with by adding random padding and
> timestamps/counters/unique tokens to the request. Modern systems would
> use something like a public key system to negotiate an ephemeral
> session key which is then used to encrypt the whole channel.
Yeah.. I had considered this problem as well. That's a bit further
down the road, but I'll investigate your suggestions when I reach this
point.
>
> That being said, crypto is HARD: you are very likely to get it wrong
> the first few times around. Your best bet: use HTTPS (OpenSSL is
> excellent) and have the whole channel encrypted. People put a lot of
> effort into developping the library and there really is no need to
> reinvent the wheel.
I had hoped I could use an off-the-shelf solution, but was unsure if the
"known plaintext" and "client in the wild" aspects of this problem would
go against their assumptions. I'll take a look at OpenSSL.
BTW, what about WS-Security? Do you think an implementation of this
XML-based standard would be adaptable to solve this problem? Or would
it be overkill?
Thanks,
Dean
- Next message: Jim Grimmett: "Re: Cryptography problem"
- Previous message: Dean Hallman: "Re: Cryptography problem"
- In reply to: Mailman: "Re: Cryptography problem"
- Next in thread: Lassi Hippeläinen: "Re: Cryptography problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|