Advertisement
EXayer

decoder

Apr 23rd, 2019
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4.  
  5. </body>
  6. <script>
  7. let i = "°MX¶G«uô“Ę¥éo±®~", a = "đ›¸IɒПÏ^ó{ÏcóŒ­Eês", c = "Ĭ»Ăš¾JؠХĭ´Ý¤ï|¹Gáz",
  8. r = "ğ¦Ĉ˜ƒQ⫀GĚ£ćŽ­GÊQă—", d = "怼Pċšî„‘_ý“ò¹ĕŸ^Ö¢";
  9.  
  10. function decode(o) {
  11. for (var e = new String, n = new Array, t = new Array, i = o.length, a = 0; a < i; a++)
  12. n[a] = o.charCodeAt(a), t[a] = o.charCodeAt(a + 1);
  13. for (a = 0; a < i; a += 2)
  14. e += String.fromCharCode(n[a] - t[a]);
  15. return e
  16. }
  17.  
  18. function encode(o) {
  19. for (var e = new String, n = new Array, t = new Array, i = o.length, a = 0; a < i; a++)
  20. n[a] = o.charCodeAt(a), t[a] = o.charCodeAt(a - 1);
  21. for (a = 0; a < i; a += 2)
  22. e += String.fromCharCode(n[a] + t[a]);
  23. return e
  24. }
  25.  
  26.  
  27. console.log(a);
  28. let lul = decode(a);
  29. console.log(lul);
  30. console.log(encode(lul));
  31. </script>
  32. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement