Finalmente ho terminato il grosso che c'era da fare col mio nuovo tool di encode e decode.
http://www.googlebig.com/sections/Encoder-Decoder-Tool/
Per ora e' possibile codare e decodare:
-Base 64
-Binary
-Hex
-Rot13
-Url
-Uppercase / Lowercase
Ho inserito anche gli algoritmi irreversibili.
Nel caso dell' md5 ho inserito il "try decode" che si collega direttamente al DB di md5crack
FUNZIONI PHP UTILIZZATE:
FUNZIONI GIA ESISTENTI IN PHP:
http://www.googlebig.com/sections/Encoder-Decoder-Tool/
Per ora e' possibile codare e decodare:
-Base 64
-Binary
-Hex
-Rot13
-Url
-Uppercase / Lowercase
Ho inserito anche gli algoritmi irreversibili.
Nel caso dell' md5 ho inserito il "try decode" che si collega direttamente al DB di md5crack
FUNZIONI PHP UTILIZZATE:
Codice:
function txt2bin($str) {
$text_array = explode("\r\n", chunk_split($str, 1));
for ($n = 0; $n < count($text_array) - 1; $n++) {
$newstring .= substr("0000".base_convert(ord($text_array[$n]), 10, 2), -8);
}
return $newstring;
}
function bin2txt($str) {
$text_array = explode("\r\n", chunk_split($str, 8));
for ($n = 0; $n < count($text_array) - 1; $n++) {
$new_str = $new_str . stripslashes(chr(base_convert($text_array[$n], 2, 10)));
}
return $new_str;
}
function hex2bin($str) {
$bin = "";
$i = 0;
do {
$bin .= chr(hexdec($str{$i}.$str{($i + 1)}));
$i += 2;
} while ($i < strlen($str));
return $bin;
}
function t3xt_2_1337($textfalt)
{
$_1337 = array("g" => "9", "c" => "(", "i" => "I", "a" => "4", "b" => "8", "e" => "3", "l" => "1", "o" => "0", "s" => "5", "t" => "7", "å" => "4", "ä" => "'4'", "ö" => "'0'");
$_1337 = str_replace(array_keys($_1337), array_values($_1337), $textfalt);
return $_1337;
}
FUNZIONI GIA ESISTENTI IN PHP:
Codice:
base64_encode($plaintext)
base64_decode($plaintext)
bin2hex($plaintext);
urlencode($plaintext);
str_rot13($plaintext);
md5($plaintext);
strtoupper($plaintext)
strtolower($plaintext)