Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function jHash($string) {
- $hash = false;
- $hash1 = 0;
- $base = base64_encode($string);
- $characters = str_split($string);
- foreach ($characters as $character) {
- $hash1 += ord($character);
- };
- $hash = $hash1 * strlen($string);
- $hash2 = 0;
- $characters = str_split($base);
- foreach ($characters as $character) {
- $hash2 += ord($character);
- };
- $hash2 = $hash2 * strlen($base);
- $hash3 = $hash1 | $hash2;
- $hash4 = $string ^ $base;
- $characters = str_split($hash4);
- foreach ($characters as $character) {
- $hash4 += ord($character);
- };
- $hash = $hash1 + $hash2 + $hash3 * $hash4;
- return base64_encode($hash);
- };
- // Password
- // www.compileonline.com/execute_php_online.php
- echo jHash("Darnassus")
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement