Download presentation
Presentation is loading. Please wait.
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 /
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.