Answered
Using the crypt function
Hi, I have a login page and I want to encrypt the password.
Do I have to encrypt it first and then put it in the DB? I already
have one "regular text" user name and pass word in there to test
and everthing works fine, I got restrict access to work on the
admin page after login . So, my next step is to tighten up security
a little. I searched around the web and could only find static
examples of the crypt function like the one below. Not quite
fitting what I need to do. I did read on another site where you
would need to put the passwords in the DB already encrypted by PHP
and then write a script to compare them. I don't neccessarily want
to create encrypted passwords on the fly ( I think), as in the case
of a new user type scenerio, just have a few users to login to this
admin section and want these " ****** " to show up in the password
form field.
