BananaMaster
New Member
Ok,
Well I was bored so I created a script that encrypts data using the MD5, sha1 and crypt functions aswell as some of my own modifications....
What do you guys think of it? Designed so it can't use those damn lists of encrypted strings as if you use the script you modify some strings that changes the entire encryption.
Well I was bored so I created a script that encrypts data using the MD5, sha1 and crypt functions aswell as some of my own modifications....
PHP:
<?
//This is a test HCRYPT script
//Ofcourse HCRYPTing will take a little longer then normal crypting eg. just using md5() function
//This is ofcourse used to stop some sort of cracking
function hcrypt($data)
{
//This is the editable area, I recomend you edit this from the default values
$var1 = "287"; //!WARNING! THESE MUST BE NUMBERS
$var2 = "215"; //!WARNING! THESE MUST BE NUMBERS, This one needs to be smaller then $var1
$var3 = "18"; //!WARNING! THESE MUST BE NUMBERS
$var4 = "15"; //!WARNING! THESE MUST BE NUMBERS, This one needs to be smaller then $var3
//This bit doesn't need editing but you ca if you wish
$letters1 = array(
"a",
"d",
"e",
"f",
"g",
"h",
"x",
"y",
"z"
);
$letters2 = array(
"k",
"l",
"m",
"c",
"n",
"o",
"p",
"q",
"r",
"s",
"t"
);
$letters3 = array(
"u",
"v",
"b",
"i",
"j",
"w",
);
$vars = ($var1-$var2)+($var3-$var4);
$thecrypt_hcrypt = sha1(md5($vars.md5($data)));
$thecrypt_hcrypt = str_ireplace($letters1, "861", $thecrypt_hcrypt);
$thecrypt_hcrypt = str_ireplace($letters2, "349", $thecrypt_hcrypt);
$thecrypt_hcrypt = str_ireplace($letters3, "132", $thecrypt_hcrypt);
$final = crypt($thecrypt_hcrypt, "salt");
return $final;
}
?>
What do you guys think of it? Designed so it can't use those damn lists of encrypted strings as if you use the script you modify some strings that changes the entire encryption.