Converting from authlogic bcrypt results in "invalid salt" error
I was using Authlogic with bcrypt. After changing the field names and installing devise, the 'invalid salt' message comes up.
I guess you are using :authlogic encryptor right? Maybe Devise and Authlogic stores the salt in different ways? Since for bcrypt the salt ends up stored with the password?
I was trying to use the bcrypt one. I'll look into how authlogic does it.
It looks like authlogic stores the salt in a separate field and the crypted password is 128 chars long.
Yeah, we have an authlogic encryptor. Have you tried using it? It should work.
Yes, I have tried it (:authlogic_sha512) but I was using bcrypt with authlogic.
I see it. So you will have to create your own encryptor. It is quite easy! :)
Yep, thanks!
Had the same problem when switching from Autlogic bcrypt to Devise bcrypt. But my mistake was just not reading. Setting config.stretches to 20 too, like stated, did the trick!