Re: Encryption Question
- From: "eggie5@xxxxxxxxx" <eggie5@xxxxxxxxx>
- Date: 14 Mar 2007 07:52:41 -0700
On Mar 14, 5:06 am, "Bart Van der Donck" <b...@xxxxxxxxxx> wrote:
David Dorward wrote:
egg...@xxxxxxxxx wrote:
I have a form where a user can change his password,
but I'm confused on how to prevent this from being
transmitted in plain text.
Run the request over HTTP with SSL (HTTPS) not plain old HTTP.
JavaScript isn't relevant to the issue.
A plain javascript solution is possible without need for HTTPS.
http://groups.google.com/group/comp.lang.javascript/msg/096d1191285a15a4
- let user type new password
- encrypt it using javascript (see link above)
- send encrypted string over HTTP and store it
- re-authentication based on same algorithm (handled at server or
client)
The algorithm of the script above corresponds to the default crypt
function on UNIX. This means that the password must be stored as an
encrypted string too - which is certainly recommended, and it seems
that the original poster isn't doing this. A safe password encryption
must always be non-reversible.
--
Bart
Correct, right now, I'm saving the password as plain text on the
server. When the user signs in their password is sha1 hashed by
javascript then sent to the server where the server password is then
sha1 hashed and compared to what the client sent.
So what your proposing is when the user signs up, hash the password as
usual, but save it in that state to the server.
Then when the user signs in, hash their password, send to the server
and then compare? Wouldn't that be sending the same hash to the server
each time, how's the better then just sending plain text? that is
plain text in essence...
Please get back to me
.
- Follow-Ups:
- Re: Encryption Question
- From: Bart Van der Donck
- Re: Encryption Question
- From: shimmyshack
- Re: Encryption Question
- References:
- Encryption Question
- From: eggie5@xxxxxxxxx
- Re: Encryption Question
- From: David Dorward
- Re: Encryption Question
- From: Bart Van der Donck
- Encryption Question
- Prev by Date: Re: window.onload and extern js
- Next by Date: Re: How to highlight an item in a table...please help
- Previous by thread: Re: Encryption Question
- Next by thread: Re: Encryption Question
- Index(es):
Relevant Pages
|