rails authentication: authlogic to devise

Originally posted on Nakshtra:
Are you using authlogic for authentication purpose in your rails application and now want to switch to Devise? Overview of Authlogic: user = User.find_by_email(‘test2@endpoint.com’) actual_password = “password” digest = “#{actual_password}#{user.salt}” 20.times { digest = Digest::SHA512.hexdigest(digest) } # compare digest and user.crypted_password here to verify password Note that the stretches value for…