DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Hash Passwords With Salts

02.20.2012
| 2673 views |
  • submit to reddit
        // Hash passwords with salts
// atmoner.com

<?php
// Déclaration des constantes
define('PREFIX_SALT', 'bonjour');
define('SUFFIX_SALT', 'aurevoire');
$hashSecure = md5(PREFIX_SALT.'m0tDePasse'.SUFFIX_SALT);
?>