Hi, I am using "Authlogic" for user authentication. I have a excel file into which I have user deatils. I have to migrate those details to the "users" table. For that I have written a script which goes through the excel file and store the data into "users" table. My code is like this:- user=User.new user.password="password" user.password_confirmation="password" user.save
Try logging in as this user to verify?
Authlogic will generate a unique salt for the user, and then hash the password with that salt. In this manner, you are never storing the plaintext passwords in the database (a very good thing!) and even if your database is exposed through some malicious attack, your accounts are still fairly well protected against a broad-spectrum rainbow table attack.