Wednesday, September 23, 2009

Day 7: Decoding Binary

01000010011001010010000001110011011101010111001001100101001000000
11101000110111100100000011001000111001001101001011011100110101100
10000001111001011011110111010101110010001000000100111101110110011
00001011011000111010001101001011011100110010100101110

This says "Be sure to drink your Ovaltine"

To decode this you would have to figure out that each segment of 8 numbers (one byte) represents a letter. Then, you'd have to find out that each byte is actually a binary representation of a decimal number. And, these decimal numbers have sequential correlations with letters. So, A is 65, B is 66, and the pattern continues.

If B is 66, its binary equivalent is 01000010, the first letter in this segment.
Once the capital alphabet has been complete, there are 7 characters and then the lower case alphabet follows. That is why the second letter in this string of code, e, i s 01100101 which equals 101 in decimal numbers.

Below is a link to a website that has a chart explaining the decimal equivalents for each coded letter, word, or symbol. When these decimal numbers are converted to binary, it is called ASCII

http://www.asciitable.com/

No comments:

Post a Comment