Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         const p = document.getElementById('password').value;
  2.         const s = "^al~e_bbyNYKvcvy|HqxeHr{gHznHtvvc6`";
  3.         const e1 = "function a(){let b = '';const g = p.substr(0, p.indexOf('{')+1); const h = g.length; for(let i = 0; i < h; i++){b += chr(ord(g[i])^h);};return b;};";
  4.         const e2 = "function c(){ let d =''; let i = p.match(/{(.*)}/); i = i ? i[1]: ''; const j = i.length ; for(let x = 0; x < j; x++){ d += chr(ord(i[x])^j)}; return d};";
  5.         const e3 = "function e() { let f = ''; const k = p[p.length-1];f = chr(Math.abs((ord(k)<<ord(k))%255)); return f};a()+c()+e();";
  6.         const r = eval(e1 + e2 + e3);
  7.         if (s === r) {
  8.             alert('Your smart boy!')
  9.         } else {
  10.             alert('I think you have headache!')
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement