/* User's password. */ $password = 'my secret password'; /* MD5 hash to be saved in the database. */ $hash = md5($password);