Googleinurl

[SCRIPT]=> SALT SENHA PHP BY: Googleinurl

Aug 5th, 2014
1,208
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. /*
  4. SALT SENHA BY: Googleinurl
  5. SENHA ENCODE=> 066abea52433a9a7b25be879fe9052b5
  6. -------------------------------------------------------------------
  7. SENHA DECODE=> 102030
  8. -------------------------------------------------------------------
  9. SENHA OK
  10. */
  11.  
  12. $pasDB = '066abea52433a9a7b25be879fe9052b5'; //Senha já criptografada que viria do banco de dados.
  13.  
  14. echo ($pasDB == senha('102030')) ? 'SENHA OK' : 'SENHA ERROR'; //Validando senha enviada pelo usuário no casa 102030
  15.  
  16. function senha($senha) {
  17.     $senha = md5(bin2hex(base64_encode($senha)).md5('SALT_SENHA-ABQSedFtyhHUIJ__!{@12423A&¨*(*&(%¨#$%¨¨&RTGFWE#$%$¨%UH}TGSFD'));
  18.     return ($senha);
  19. }
  20.  
  21. ?>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×