Hello,
I am an app running on rails 3.0.20 which uses its own custom authentication system. The database is in postgres and I am trying to implement devise 1.5.4. which is the most suitable version for my app. Since the passwords where being stored with Digest::SHA1.hexdigest(string) which is not regress able, I would need to keep the passwords(we have more than 100 000 users and its not suitable for our time constrain to ask every user to redefine their password). The 2 solutions I see here is:
-or before the password been encrypted by devise, use the custom encrypt function and give the result of that to devise to treat.(having to make all the records go through this process before the code can go live)
I like the second option better because the only problem I see in it is a little overhead on applying one encryption more. the first one brings more customization to the table and uses another encryption that we know not be that secure.and more customization brings more flaws as well.
but my question is what is the best way of implementing the second, and whats your opinion on this? which one is better and easier/faster to implement.
all the best,
Andre