rabyte

Script Encode & Decode X'1N73CT

Jun 29th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.52 KB | None | 0 0
  1. <title>script encode & decode by X'1N73CT </title>
  2. <STYLE>
  3. body,td,th {font-family: Verdana;font-size: 12px;color: #00FF00;font-weight: bold;}
  4. .jaya{ font-family:Vivaldi;font-size:50px;color: #00FF00;}
  5. input {BORDER-RIGHT:#00FF00 1px solid;BORDER-TOP:#00FF00 1px solid;BORDER-LEFT:#00FF00 1px solid;BORDER-BOTTOM: #00FF00 1px solid;BACKGROUND-COLOR: #111111;COLOR: #00FF00;font: 8pt Verdana;}
  6. select {BORDER-RIGHT:#00FF00 1px solid;BORDER-TOP:#00FF00 1px solid;BORDER-LEFT:#00FF00 1px solid;BORDER-BOTTOM: #00FF00 1px solid;BACKGROUND-COLOR: #111111;COLOR: #00FF00;font: 8pt Verdana;}
  7. submit {BORDER-RIGHT:buttonhighlight 2px outset;BORDER-TOP:buttonhighlight 2px outset;BORDER-LEFT:buttonhighlight 2px outset;BORDER-BOTTOM: buttonhighlight 2px outset;BACKGROUND-COLOR: #000099;COLOR: #FFFF00;width: 30%;}
  8. textarea {BORDER-RIGHT:#00FF00 1px solid;BORDER-TOP:#00FF00 1px solid;BORDER-LEFT:#00FF00 1px solid;BORDER-BOTTOM: #00FF00 1px solid;BACKGROUND-COLOR: #111111;COLOR: #00FF00;font: Fixedsys bold;}
  9. BODY {margin-top: 1px;margin-right: 1px;margin-bottom: 1px;margin-left: 1px;SCROLLBAR-FACE-COLOR: #111111; SCROLLBAR-HIGHLIGHT-COLOR: #111111;SCROLLBAR-ARROW-COLOR: #c5c5c5;SCROLLBAR-BASE-COLOR: #253546;BACKGROUND-COLOR: #000000;}
  10. </STYLE>
  11. <center>
  12. <BR>
  13. <br><div class="jaya">Script Encode & Decode</div>
  14. <?php
  15. @ini_set('output_buffering',0);
  16. @ini_set('display_errors', 0);
  17. $text = $_POST['code'];
  18. ?>
  19. <form method="post"><br><br><br>
  20. <textarea cols=80 rows=10 name="code"></textarea><br><br>
  21. <select class='inputz' size="1" name="ope">
  22. <option value="urlencode">url</option>
  23. <option value="base64">Base64</option>
  24. <option value="ur">convert_uu</option>
  25. <option value="gzinflates">gzinflate - base64</option>
  26. <option value="str2">str_rot13 - base64</option>
  27. <option value="gzinflate">str_rot13 - gzinflate - base64</option>
  28. <option value="str">str_rot13 - gzinflate - str_rot13 - base64</option>
  29. <option value="url">base64 - gzinflate - str_rot13 - convert_uu - gzinflate - base64</option>
  30. </select>&nbsp;<input class='inputzbut' type='submit' name='submit' value='Encode'>
  31. <input  type='submit' name='submits' value='Decode'>
  32. </form>
  33.  
  34. <?php
  35. $submit = $_POST['submit'];
  36. if (isset($submit)){
  37. $op = $_POST["ope"];
  38. switch ($op) {case 'base64': $codi=base64_encode($text);
  39. break;case 'str' : $codi=(base64_encode(str_rot13(gzdeflate(str_rot13($text)))));
  40. break;case 'gzinflate' : $codi=base64_encode(gzdeflate(str_rot13($text)));
  41. break;case 'gzinflates' : $codi=base64_encode(gzdeflate($text));
  42. break;case 'str2' : $codi=base64_encode(str_rot13($text));
  43. break;case 'urlencode' : $codi=rawurlencode($text);
  44. break;case 'ur' : $codi=convert_uuencode($text);
  45. break;case 'url' : $codi=base64_encode(gzdeflate(convert_uuencode(str_rot13(gzdeflate(base64_encode($text))))));
  46. break;default:break;}}
  47.  
  48. $submit = $_POST['submits'];
  49. if (isset($submit)){
  50. $op = $_POST["ope"];
  51. switch ($op) {case 'base64': $codi=base64_decode($text);
  52. break;case 'str' : $codi=str_rot13(gzinflate(str_rot13(base64_decode(($text)))));
  53. break;case 'gzinflate' : $codi=str_rot13(gzinflate(base64_decode($text)));
  54. break;case 'gzinflates' : $codi=gzinflate(base64_decode($text));
  55. break;case 'str2' : $codi=str_rot13(base64_decode($text));
  56. break;case 'urlencode' : $codi=rawurldecode($text);
  57. break;case 'ur' : $codi=convert_uudecode($text);
  58. break;case 'url' : $codi=base64_decode(gzinflate(str_rot13(convert_uudecode(gzinflate(base64_decode(($text)))))));
  59. break;default:break;}}
  60.  
  61. echo '<textarea cols=80 rows=10 class="inputz" readonly>'.$codi.'</textarea></center><BR><BR>';
  62.  
  63.  
  64. ?>
Add Comment
Please, Sign In to add comment