Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

PHP Encryption - PHP Code Bank


PHP Encryption
A "custom" encryption method that I thought of. I hope you find it useful.
                <form method=POST>
<input type=text name='str'/>
<input type='SUBMIT'/>
<?php												

$string = $_POST['str'];

$a = array('/a/', '/b/', '/c/', '/d/', '/e/', '/f/', '/g/', '/h/', '/i/', '/j/', '/k/', '/l/', '/m/', '/n/', '/o/', '/p/', '/q/', '/r/', '/s/', '/t/', '/u/', '/v/', '/w/', '/x/', '/y/', '/z/', '/A/', '/B/', '/C/', '/D/', '/E/', '/F/', '/G/', '/H/', '/I/', '/J/', '/K/', '/L/', '/M/', '/N/', '/O/', '/P/', '/Q/', '/R/', '/S/', '/T/', '/U/', '/W/', '/X/', '/Y/', '/Z/', '/&/', '/@/', '/%/');

$b = array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57');

$a2 = array('/10/', '/11/', '/12/', '/13/', '/14/', '/15/', '/16/', '/17/', '/18/', '/19/', '/20/', '/21/', '/22/', '/23/', '/24/', '/25/', '/26/', '/27/', '/28/', '/29/', '/30/', '/31/', '/32/', '/33/', '/34/', '/35/', '/36/', '/37/', '/38/', '/39/', '/40/', '/41/', '/42/', '/43/', '/44/', '/45/', '/46/', '/47/', '/48/', '/49/', '/50/', '/51/', '/52/', '/1/', '/2/', '/3/', '/4/', '/5/', '/6/', '/7/', '/8/', '/9/', '/E/');

$b2 = array('k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'ya', '9e');

$string2 = preg_replace($a, $b, $string);

$part2 = strlen($string);

$part3 = $string2 * $part2;

$string3 = preg_replace($a2, $b2, $part3);

$final = preg_replace('/[^a-z0-9]/', '', $string3);
?>

            
Comments
b4ckd0or's avatar
b4ckd0or 12 years ago

You can easily crack pws encrypted with this :) Hint: strlen('02') = 2;1*02 = 2 :D

Bane's avatar
Bane 11 years ago

More like encoding