I use devise and rails app for authenticate users from mobile; so the user sign up/sign in/ sign out from their mobile devices, the problem is for (sign up/sign in) so that the user send his plain text password over the wire, how can I encrypt the plain text password and decrypt it on the server side? I am very new to RoR and Devise.
1 Answer
I'm not sure what you are trying to accomplish when you say "send plaint text password over wire" but below [1] is a good tutorial for creating a json api with devise. It uses the old token_authenticable module which has been removed from devise so follow this gist [2] to make modifications.
2 Comments
Bahador Biglari
I am checking your suggestion, but as I read other posts It would be a good idea to use SSL and HTTPS
Bahador Biglari
also I find this which is very helpful thecodingdoc.com/blog/29/4/2013/…