Skip to content

Instantly share code, notes, and snippets.

@sifu
Created April 13, 2012 12:54
Show Gist options
  • Save sifu/2376719 to your computer and use it in GitHub Desktop.
Save sifu/2376719 to your computer and use it in GitHub Desktop.
#!/usr/bin/env node
var input = '011101010110111001100011011000110110110000100000011011110111000101101110>
var i=0, message='', input;
while( charCodeAsBinary = input.substr( i, 8 ) ) {
message += String.fromCharCode( parseInt( charCodeAsBinary, 2 ) );
i+=8;
}
console.info( message );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment