I got some of my nifty rails apps working, and its all jiffy and peaceful. I want to secure one tiny part that just feels wrong doing the way it is now - my sign-in procedure, where I use the form_tag with the remote option to send the content of a text and password field for obvious reasons using POST.
Sending a password just plain over HTTP makes me feel dirty. From where I can see, I have the following options:
- learn to live with it and hope for the best
- learn something awesome to have my controller doing magic through a rails-helper-i-dunno-about trick
- build a separate app that runs on HTTPS and make life a living hell by going back to square one.
- use JavaScript encryption
Somehow I think my best option is 4 - JavaScript encryption. However, if the user types in his/her password and it gets encrypted with a part that is server-generated, it should be secure (in relation of solving the problem of sending it in plain text over HTTP) and solve my problem I guess. But on the rails side, to get that to work is to keep (yes, i have many things to cover, still) plain passwords in my database.
I need some help here - some pointers.