Advertisement
e55db081d05f58a

Correct __aqw38bf2f.js (Cipher & Decipher)

Jan 31st, 2017
5,206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var __aqw38bf2f=(function(window){
  2.     function unicode_random(n){
  3.       i=0;
  4.       code="";
  5.       len=n;
  6.       (len=="")?50:parseInt(len);
  7.       while(i<len){
  8.         al=function(n){
  9.             j=0;
  10.             str='';
  11.             while(j<n){
  12.                 str+=Math.floor((Math.random()*15)).toString(16).replace(/\\x/g,"");
  13.                 j++;
  14.             }
  15.             return str;
  16.         }(4);
  17.         code+=(unescape("%u"+al));
  18.         i++;
  19.       }
  20.       return code;
  21.     };
  22.     function cipher(raw,pass){
  23.         n=0;
  24.         for(k=0;k<pass.length;k++){
  25.             n+=pass[k].charCodeAt()^1337;
  26.         }
  27.         n%=400;
  28.         raw||(raw='');
  29.         c="";
  30.         d="ㅤ".repeat(n);
  31.         e="ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็ ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้".repeat(n);
  32.         junk=unicode_random(n);
  33.         for(i=0;i<raw.length;i++){
  34.             cc=String.fromCharCode(raw[i].charCodeAt()^n);
  35.             c+=(d+e+junk+e+d+cc+d+e+junk+e+d);
  36.         }
  37.         return c;
  38.     }
  39.     function decipher(raw,pass){
  40.         n=0;
  41.         for(k=0;k<pass.length;k++){
  42.             n+=pass[k].charCodeAt()^1337;
  43.         }
  44.         n%=400;
  45.         raw||(raw='');
  46.         d="ㅤ".repeat(n);
  47.         e="ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็ ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้".repeat(n);
  48.         p0=d+e+"[^ㅤ]*"+e+d;
  49.         p=new RegExp(p0,'g');
  50.         dc=c.replace(p,"");
  51.         raw='';
  52.         for(i=0;i<dc.length;i++){
  53.             raw+=String.fromCharCode(dc[i].charCodeAt()^n);
  54.         }
  55.         return raw;
  56.     }
  57.     return {
  58.         cipher:cipher,
  59.         decipher:decipher
  60.     }
  61. })(window,undefined);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement