Advertisement
AZZATSSINS_CYBERSERK

EncryptDecrypt Base64

Jun 29th, 2016
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.67 KB | None | 0 0
  1. <title>BASE64 ENCODECODE | AZZATSSINS</title>
  2. <body style='color: #000000;background:url(http://azzat.wap.mu/files/1049320/IMG_20150725_103425.JPG) repeat scroll center top;background-attachment: fixed;SCROLLBAR-FACE-COLOR: #F1F1F1; MARGIN: 0px;SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; OVERFLOW: auto;'>
  3. <?php
  4. @ini_set('output_buffering',0);
  5. @ini_set('display_errors', 0);
  6. $text = $_POST['code'];
  7. ?>
  8. <form method="post"><br><br><br>
  9. <textarea class='inputz' cols=80 rows=10 name="code"></textarea><br><br>
  10. <select class='inputz' size="1" name="ope">
  11. <option value="urlencode">url</option>
  12. <option value="base64">Base64</option>
  13. <option value="ur">convert_uu</option>
  14. <option value="gzinflates">gzinflate - base64</option>
  15. <option value="str2">str_rot13 - base64</option>
  16. <option value="gzinflate">str_rot13 - gzinflate - base64</option>
  17. <option value="strrev">gzinflate - base64 - str_rot13 - strrev</option>
  18. <option value="str">str_rot13 - gzinflate - str_rot13 - base64</option>
  19. <option value="url">base64 - gzinflate - str_rot13 - convert_uu - gzinflate - base64</option>
  20. <option value="gzrt">gzinflate - str_rot13 - base64 - str_rot13 - gzinflate - base64</option>
  21. </select>&nbsp;<input class='inputzbut' type='submit' name='submit' value='Encode'>
  22. <input class='inputzbut' type='submit' name='submits' value='Decode'>
  23. </form>
  24.  
  25. <?php
  26. $submit = $_POST['submit'];
  27. if (isset($submit)){
  28. $op = $_POST["ope"];
  29. switch ($op) {case 'base64': $codi=base64_encode($text);
  30. break;case 'str' : $codi=(base64_encode(str_rot13(gzdeflate(str_rot13($text)))));
  31. break;case 'gzinflate' : $codi=base64_encode(gzdeflate(str_rot13($text)));
  32. break;case 'gzinflates' : $codi=base64_encode(gzdeflate($text));
  33. break;case 'str2' : $codi=base64_encode(str_rot13($text));
  34. break;case 'urlencode' : $codi=rawurlencode($text);
  35. break;case 'ur' : $codi=convert_uuencode($text);
  36. break;case 'gzrt' : $codi=base64_encode(gzdeflate(str_rot13(base64_encode(str_rot13(gzdeflate($text))))));
  37. break;case 'strrev' :  $codi=strrev(str_rot13(base64_encode(gzdeflate($text))));
  38. break;case 'url' : $codi=base64_encode(gzdeflate(convert_uuencode(str_rot13(gzdeflate(base64_encode($text))))));
  39. break;default:break;}}
  40.  
  41. $submit = $_POST['submits'];
  42. if (isset($submit)){
  43. $op = $_POST["ope"];
  44. switch ($op) {case 'base64': $codi=base64_decode($text);
  45. break;case 'str' : $codi=str_rot13(gzinflate(str_rot13(base64_decode(($text)))));
  46. break;case 'gzinflate' : $codi=str_rot13(gzinflate(base64_decode($text)));
  47. break;case 'gzinflates' : $codi=gzinflate(base64_decode($text));
  48. break;case 'str2' : $codi=str_rot13(base64_decode($text));
  49. break;case 'urlencode' : $codi=rawurldecode($text);
  50. break;case 'ur' : $codi=convert_uudecode($text);
  51. break;case 'strrev' : $codi=gzinflate(base64_decode(str_rot13(strrev($text))));
  52. break;case 'gzrt' : $codi=gzinflate(str_rot13(base64_decode(str_rot13(gzinflate(base64_decode($text))))));
  53. break;case 'url' : $codi=base64_decode(gzinflate(str_rot13(convert_uudecode(gzinflate(base64_decode(($text)))))));
  54. break;default:break;}}
  55.  
  56. echo '<textarea cols=80 rows=10 class="inputz" >'.$codi.'</textarea></center><BR><BR>';
  57.  
  58.  
  59. ?>
  60. <p align="left"><br><font color=lime><center>+--=[ Urutan dari Option ]=--+<br></center>
  61. 1. rawurldecode($text);<br>
  62. 2. base64_decode($text);
  63. <br>
  64. 3. convert_uudecode($text);<br>
  65. 4. gzinflate(base64_decode($text));<br>
  66. 5. str_rot13(base64_decode($text));<br>
  67. 6. str_rot13(gzinflate(base64_decode($text)));<br>
  68. 7. str_rot13(gzinflate(str_rot13(base64_decode(($text)))));<br>
  69. 8. base64_decode(gzinflate(str_rot13(convert_uudecode(gzinflate(base64_decode(($text)))))));<br>
  70. 9. gzinflate(str_rot13(base64_decode(str_rot13(gzinflate(base64_decode($text))))));<br>
  71. </font>
  72. </p>
  73. </body>
  74. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement