Presentation is loading. Please wait.

Presentation is loading. Please wait.

Encrypted Passwords. your_password + username $u = crypt ( your_password ) PHP insert username + $u SQL MySQL database username | encrypted password username.

Similar presentations


Presentation on theme: "Encrypted Passwords. your_password + username $u = crypt ( your_password ) PHP insert username + $u SQL MySQL database username | encrypted password username."— Presentation transcript:

1 Encrypted Passwords

2 your_password + username $u = crypt ( your_password ) PHP insert username + $u SQL MySQL database username | encrypted password username | $u Password Table Your actual password is never stored – either in the PHP program or the database Only its encrypted version ! On Password Creation

3 your_password + user select * from Password where username=user SQL MySQL database username | encrypted password EC user EC $y = mysql_fetch_array ( $x ) ; $x Password Table $y["EC"] ) crypt ( "your_password", ( == $y["EC"] )or ( die ("Invalid password") ) ; On Password based Authentication

4 PHP Syntax checking Usually white screen of death signals PHP syntax error. www.meandeviation.com/tutorials/learnphp/php-syntax-check /


Download ppt "Encrypted Passwords. your_password + username $u = crypt ( your_password ) PHP insert username + $u SQL MySQL database username | encrypted password username."

Similar presentations


Ads by Google