19.2. Data protection begins with passwords
19.2.1. A simple page to use an encrypted password
One of the best and most effective ways to protect against unauthorized access to your Web site is to use a password. As we mentioned in section 19.1, MD is a powerful tool to generate encrypted passwords and in fact is a standard in the Internet community known as IETF RFC 1321. The MD function has gone through five versions. Many implementations use the function name md5() to represent the version number. Different Web technologies may have slightly different names for this function, but all produce the same result. For example, the md5() function in PHP and Perl may have different names, but produce the following numeric values:
PHP script:
md5("johnsmith") ...
Get Practical Web Technologies now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.