Skip to content

Instantly share code, notes, and snippets.

@donburks
Forked from krsnachandra/holidayobfuscation.js
Created December 22, 2017 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donburks/8f88a6c16abdaea8bce69317e0a1c8a8 to your computer and use it in GitHub Desktop.
Save donburks/8f88a6c16abdaea8bce69317e0a1c8a8 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();
@donburks
Copy link
Author

Outputs the text:
O Tannenbaum O Tannenbaum wie treu sind deire blatter

Aka the original German words to 'O Christmas Tree'.

@donburks
Copy link
Author

Yep, I was right (and typoed 'deine')

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