Created
December 8, 2011 16:15
-
-
Save TiuTalk/1447464 to your computer and use it in GitHub Desktop.
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 | |
// Senha do usuário, pode ter vindo do $_POST, $_GET ou outro lugar | |
$senha = 'olá mundo'; | |
// Encripta a senha usando MD5 | |
$senha = md5($senha); | |
// Resultado: | |
// ca4e913424bfcfe71c016829a371a1f1 | |
// Salvamos essa senha encriptada no banco |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment