Created
June 9, 2016 23:40
-
-
Save ConorOBrien-Foxx/4bdb9bc87c3b1776be0de29d67336ae8 to your computer and use it in GitHub Desktop.
Obfuscated "Hello, World!"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// call with node --use_strict hello_world.js | |
// prints "Hello, World!" | |
// I'm too lazy to make it pretty :P | |
let A,B,C,D,E,F,G,H,I,J,K,L,M,O,P,R,S,T,U,V,W,X,Y,Z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,x,y,z;O=(s,e)=>[...s].map(k=>e[k])[V="join"]``;p=Symbol`[:`;g=(e,r)=>e[r];s=(c,a,b)=>a[b](c);k=(f,g,h)=>a=>p===f?g(h(a)):g(f(a),h(a));a=(x,y)=>!y?+x:x+y;A=(x,y,z)=>a(x,a(y,z));r=(a,b)=>A(a,b,a);c=(f,a)=>f(a);D=a=>()=>a;S=f=>f(f);e=k=>!!k;W=72697618120946;F=x=>k(p,e,d)(x[k(p,a,d)(d(1337+[]+7099).replace(/((...).(.))/,"$2")).toString(r(2,[]))]);G=eval(s(32,559689045,T="toString"));q=x=>x!==G.Q;l=(f,n)=>function(){return(f(...[...arguments].slice(0,n)));};B=(f,g) =>F(f)? F(g)?(r,s)=>q(s)?g(...[r,s].map(l(f,1))):g(f(r)):s=>f(s,g):F(g)?r=>g(f,r):()=>[f,g];K=(a,s,d)=>k(!F(a)?D(a):a,s,d);R=f=>(s,v)=>[f(s,s),f(q(v)?v:s,s)][+q(v)];d=x=>x;b=[][C=k(d,a,B("15",O))(14044440164765.[T](32))];y=R(g)(C,R(a)(R(B)([])()));H=(q,w)=>q<<w;h=(f,n)=>a=>{while(0<=--n)a=f(a);return a};x=(a,b,r)=>b?x(B(H,1)(a),b>>1,b&1?(r||0)+a:r):r;I=(f)=>(a,b,c)=>f(f(a,b),c);J=j=>j[I(x)(W&&2029,18679,19)[T](K(R(H)(2),H,d)(2))];z=(x,y)=>y;Z=(f,g,h)=>(a,b)=>!q(b)?K(f,g,h)(a):g(f(a,b),h(a,b));Y=(A,B)=>I(a)(A,1,~B);E=(n,x)=>n<0?E(Z(d,a,X=B(J,z))(n,x),x):n>=J(x)?E(Z(d,Y,X)(n,x),x):x[n];U=(a,x)=>x[C](a.map(B(E,x)));i=(n,m)=>[][C](m-n+1).fill(m).map((e,i,x)=>e-(J(x)-i)+1);m=(n)=>K(x=>-x,i,d)(n);M=(n)=>a(n[0][`${K(...[0,a,1].map(e=>F(e)?e:B(g,e)))(T)}U${R(a)`p`}erCase`](),U(i(1,J(n)-1),n));[][C][W[T](36)][T]=function(){return this[V]("")};n=(a)=>a.map(e=>e<0?M(n([-e])[0]):e[T](36));o=(N,J)=>N?(N%2?o(N-1,J):"")+T[C][T[C](n([735718,-582291,-591458]))](J+N)+(-~N%2?o(N-1,J):""):"";t=T[C]([-40,-32,0,32].map(e=>B(26,o)(e+64)));R(g)(U([0,4,3,5,4,2,1],750119212[T](0b0100100)),G)[G[C][T[C](n([21269,-32279,-2019371093350,-39126772]))](Math).filter(e=>[e,t].map((e,i)=>e[[1,98][i]]).reduce((p,c)=>p===c)&&!Math[e](1))[0]](U("6185716770030948584645450h".match(/(\d{3})+\w/gmi[C](R(a)(g(t,2)),"g")).map((e,i)=>parseInt(e,i+10)),t)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment