Advertisement
jmlapam

Untitled

Jul 13th, 2014
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #nevermind
  2. /*
  3. md5() renvoie toujours le même hash pour la même string de départ
  4. */
  5. $test = 'Hey ça va ?';
  6. $test_lvl_2 = md5($test);
  7. $output = md5($test_lvl_2)."\t";
  8. $output .= md5( md5($test) );
  9.  
  10. echo $output;
  11.  
  12. /*
  13. crypt() renvoie des hash différents lui
  14. */
  15. echo "<br />";
  16.  
  17. $test_lvl_2_crypt = crypt($test);
  18. $output_crypt = crypt($test_lvl_2)."\t";
  19. $output_crypt .= crypt( crypt($test) );
  20.  
  21. echo $output_crypt;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement