I want to send a field which I add in a form in order to create user using the devise gem. These field is the password to access SVN so I don't want store it in a plain text and obviously, I cannot code it with an only one way algorithm. I thought about coding it in base 64, but I don't know how can I do it in the form field or in devise gem. This is my form field:
<%= password_field_tag :pass, type:"password", name:"user[XXXX_password]", id:"XXXX_password" %>
Can I send the field codified with Base64.encode() or similar?
Any suggestion?
Thanks
EDIT:
I will try to explain it better:
I store the data the user (mail, pass ...) but, additionally I have added two fields: user and password of subversion.
Obviously, the devise password is encrypted, but the subversion password field can not be encrypted in a single way because when passed to subversion it would not recognize it.