DEV Community

Discussion on: Decode a Binary Message using JavaScript

Collapse
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

For anyone wondering, you can also decode this by hand, albeit more slowly:

01010100 01101000 01100001 01110100 00100111 01110011 00100000 01110011 01101111 00100000 01100011 01101111 01101111 01101100 00100000 01000110 01101100 01101111 01110010 01101001 01101110 00100001

Each group of 8 bits is a byte (hence the intentional spacing to make it more obviousβ€”he could've been more cheeky by grouping them all together). And characters on most modern OSes are represented using bytes (1 char = 1 byte).

01010100 = 4 + 16 + 64 = 84 = T in ASCII.

And so on.

Collapse
 
florinpop17 profile image
Florin Pop

Or that, yes πŸ‘