PHP Login Script

PHP Login Script

This simple php login script features functions to add hashed and encrypted passwords and usernames to a mysql table, and then a function to validate users based on these PHP login credentials. One of the most popular uses of a PHP script is to secure acess to various portions of a website based on a user's login name and password. We only use one way encryption, when storing the php login passwords in the mysql database, because our php login script never needs to know the actual plaintext of the username or password, thereby securing the php login script.