alpha_full/_include/_fonctions/fonctionCryptMDP.php
2026-04-06 22:58:51 +02:00

11 lines
254 B
PHP
Executable File

<?php
// Déclaration des constantes
define('PREFIX_SALT', '1JeMetDuSelµ1');
define('SUFFIX_SALT', '2JeMetDuPoivreµ2');
function cryptMDP($theMDP) {
$hashSecure = crypt(PREFIX_SALT .$theMdp.SUFFIX_SALT,PREFIX_SALT);
return $hashSecure;
}
?>