MD5/SHA1 Encryption in PHP vs. MySQL

This is a guest post by Karl Agius.

Last week, there was a brief discussion in the comments for "Creating a PHP CMS Part 7" about whether it was preferable to use PHP's functions, or MySQL's built in functions to digest a password. There was no solid answer at that point, so I ran a small test to determine which way worked best.

Creating a PHP CMS – Part 7

In today's part of Creating a PHP CMS, we will be creating a simple login system.This login system will be used to restrict access to the administration panel. I will talk about user validation, site security and application of the login system.

Creating a PHP CMS – Part 6

Today we will be looking at some administration functions for our CMS, including updating posts, deleting posts and changing the home page.

Creating a PHP CMS – Part 5

In the last few posts, we learned how to display information from the database. Today, we will be creating lists of posts for a navigation list, and for the CMS admin.

Creating a PHP CMS – Part 4

In part 4 of Creating a PHP CMS, I talk about getting information from a MySQL database and displaying it to the user. I also go over how to set a default home page.