> I would like to migrate users from my old phpfusion site but I have there hash password md5(md5) how to convert this passwords to bcrypt?
> I creating Sinatra app whre i use this passwords with Warden.
If you can configure Warden to use the md5 passwords, then do that. Then, modify the login process so that upon successful login you save their password (which you have at the moment in plain text) as a bcrypt-ed string. On next login, verify against bcrypt.
For more info, take a look at authlogic's "migrate from restful authentication" to see how it handles it...
-philip
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment