Skip to content

Instantly share code, notes, and snippets.

@jholman
Forked from krsnachandra/holidayobfuscation.js
Created December 22, 2017 19:58
Show Gist options
  • Save jholman/845a4a600390f9802c7fe9f235e321c6 to your computer and use it in GitHub Desktop.
Save jholman/845a4a600390f9802c7fe9f235e321c6 to your computer and use it in GitHub Desktop.
Submission for LHL holiday obfuscation contest
function g() {
let a='Noel';
let b='Yuletide';
let c='Santa Claus';
let d='Rudolph';
let e='Snowflake';
let f='Occasion';
let g='North Pole';
let h='Christmas Tree';
let i='Joy';
let j='Elf';
let k='Firewood';
let l='Poinsettia';
let m='Jingle Bells';
let n='Gingerbread';
l=c;e=f;f=i;j=h;i=g;h=m;a=n;c=b;d=k;
let o=e[0]+j[9]+j[10]+e[3]+a[2]+l[2]+c[7]+h[2]+a[6]+e[3]+c[1]+j[6]+h[6];o+=o;
let p=d[4]+a[1]+d[3]+h[6]+l[3]+i[2]+j[12]+c[1]+h[6]+e[4]+h[1]+a[2]+c[6]+i[5];
let q=c[6]+i[9]+a[1]+l[2]+h[8]+j[9]+h[7]+i[8]+e[3]+c[4]+l[3]+d[3]+i[2];p+=q;
console.log(o);
console.log(p);
}
g();
@jholman
Copy link
Author

jholman commented Dec 22, 2017

It appears to log out
"O Tannenbaum O Tannenbaum
Wie treu sind deine Blatter"
and cause blood to drop from my eyes

@jensen
Copy link

jensen commented Dec 22, 2017

Where did the capital W come from ;)

@jholman
Copy link
Author

jholman commented Dec 22, 2017

Karl is of course correct. I dunno if that invalidates my guess from being "reasonably correct".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment