Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FeeLCoMz Encoder & Hash Calculator v1.0
#1
Tool PHP buat Encoding & menghitung Hash suatu text.

Mohon kritik, saran, & masukannya. :D

PHP Code:
<?php $judul = ".: FeeLCoMz Encoder & Hash Calculator v1.0 :."; error_reporting(E_ALL); ?> <html> <head> <title><?php echo $judul; ?> - By FaTaLisTiCz_Fx</title> <style> body { margin-top: 25px; } body, table, textarea, input { background: #000; color: #ccc; font: 8pt Tahoma; } table, input[type="text"], textarea { background: #555; border: 1px solid #666; vertical-align: top; padding: 3px; } input[type="text"], textarea { font: 8pt Courier New; background: #333; border: 1px solid #666; } th, td { padding: 3px; } th { text-align: left; } .c { text-align: center; } .r { text-align: right; } </style> </head> <?php $mode = 'Input'; $hashes = array('crc32', 'crypt', 'md5', 'sha1'); $str = (isset($_POST['str'])) ? $_POST['str'] : ''; $str = (get_magic_quotes_gpc()) ? stripslashes($str) : $str; $pre_len = strlen($str); if ( isset($_POST['deflate']) ) { $mode = 'GZ Deflate + Base64 Encode'; $res = base64_encode(gzdeflate($str)); $res = chunk_split($res); } elseif ( isset($_POST['inflate']) ) { $mode = 'GZ Inflate + Base64 Decode'; $res = @gzinflate(base64_decode($str)); if (!$res) { $res = "ERROR!"; } $post_len = strlen($res); } elseif ( isset($_POST['metaphone']) ) { $mode = 'Metaphone'; $res = metaphone($str); $res = chunk_split($res); } elseif ( isset($_POST['base64enc']) ) { $mode = 'Base64 Encode'; $res = base64_encode($str); $res = chunk_split($res); } elseif ( isset($_POST['base64dec']) ) { $mode = 'Base64 Decode'; $res = base64_decode($str); $post_len = strlen($res); } else { $res = $str; } if (!isset($post_len)) { $post_len = strlen($res); } $res = htmlentities($res); ?> <body> <center> <form name="box" action="" method="post"> <table> <thead><th colspan="2" class="c"><h2><?php echo $judul; ?></h2></th></thead> <tbody> <?php foreach ($hashes as $v) { echo "\t".'<tr><th>'.$v.':</th><td><input type="text" size="50" onFocus="this.select()" onMouseover="this.select()" onMouseout="this.select()" value="'.$v($res).'" readonly></td></tr>'; } ?> <tr><th></th><th><?php echo $mode.":"; ?></th></tr> <tr><th></th><td><textarea name="str" rows="15" cols="80"><?php echo $res; ?></textarea><br /><br /><?php echo "Before: <b>$pre_len</b> After: <b>$post_len</b>"; ?></td></tr> <tr><td> </td><td> <input type="button" value="Clear" onclick="box.str.value=''"/> <input type="submit" name="calculate" value="Calculate" /> <input type="submit" name="deflate" value="GZip Deflate" /> <input type="submit" name="inflate" value="GZip Inflate" /> <input type="submit" name="base64enc" value="Base64 Encode" /> <input type="submit" name="base64dec" value="Base64 Decode" /> <input type="submit" name="metaphone" value="Metaphone" /> </td></tr> </tbody> <tfoot><td colspan="2" class="c">© 2009 By FaTaLisTiCz_Fx [FeeLCoMz Community]</td></tfoot> </table> </form> </center> </body></html>
.: No System is Perfectly Safe :.
Reply


Messages In This Thread
FeeLCoMz Encoder & Hash Calculator v1.0 - by FaTaLisTiCz_Fx - 09-13-2009, 03:25 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  FeeLCoMz Fx29PHPBot v1.74 FaTaLisTiCz_Fx 14 185 09-14-2009, 05:45 PM
Last Post: cLassicRosE

Forum Jump:


Users browsing this thread: 1 Guest(s)