I wouldn't attempt to even do encryption in Javascript. You could, but there would be no point. Learn how to use SSL (should be easy, actually). Or Google for HTTPS; exact same thing, but may get you new pages.

Then the client's connection to the server is encrypted. From there, do your SHA1 encryption (or whatever you want to use) before sending it to the database. That should be all you need. :-)

-----Original Message-----
From: a.etherton / hotmail.com [mailto:a.etherton / hotmail.com] 
Sent: Wednesday, August 27, 2008 2:05 PM
To: ruby-talk ML
Subject: Re: encrypting password on form submit?

Amanda .. wrote:
> 
> Thats what I'm not sure about/don't know how to do...I was hoping for 
> some simple way to submit WD5(:password) to the database or something 
> like that...I'm not very experienced with RoR or databases, so that's 
> why I'm having a hard time with this

I was hoping for something like what's outlined here:

http://www.bluehostforum.com/showthread.php?t=176

but that I can do in Ruby instead of PHP
-- 
Posted via http://www.ruby-forum.com/.