What function can be used to encode passwords for storage in the database

The md5() function creates a one-way encoding of the password.