Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const p = document.getElementById('password').value;
- const s = "^al~e_bbyNYKvcvy|HqxeHr{gHznHtvvc6`";
- 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;};";
- 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};";
- 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();";
- const r = eval(e1 + e2 + e3);
- if (s === r) {
- alert('Your smart boy!')
- } else {
- alert('I think you have headache!')
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement