Last active
December 22, 2015 04:18
-
-
Save sergiois/6416231 to your computer and use it in GitHub Desktop.
Función que permite generar una contraseña tal cual la crea el Core de Joomla!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function joomlaPassword($password) { | |
$password= base64_decode($password); | |
$salt = md5(mt_rand()); | |
$encrypt = md5($password . $salt); | |
return $encrypt . ':' . $salt; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment