Understand binary and how to write it

03/07/2013 03:13 Super Aids#1
I have no idea where this should be posted actually rofl.
I was a bit bored and though I'd do a quick tutorial on how to read and write binary, but as well how to write messages in it.

First of all I'm sure you all know how binary works. It's just a bunch of 1's and 0's. Well no, it's not just a bunch of 0's and 1's. These numbers represents something which is called bits. Some people confuses bits with bytes, but they're not the same. A byte is actually 8 bits.

So what are the 0's and 1's then? Basically you can see bits as lightbulps. Either they're on or off, which also can be said to be true or false.

You read a binary digit from right to left starting with the highest bit controller and then to the lowest.
This is the structure:
[Only registered and activated users can see links. Click Here To Register...]

So here we have an empty byte:
[Only registered and activated users can see links. Click Here To Register...]

To represent a number we have to either set these numbers on or off. We can do that by replacing the 0's with 1's. (0 represents off, 1 represents on)

So if we wanted to represent the number 1 then we'd just turns on the last bit (As I said binary starts from higest to lowest.)
[Only registered and activated users can see links. Click Here To Register...]

So how do you think we represent the number 2?
That is correct we just turns on the second last bit.
[Only registered and activated users can see links. Click Here To Register...]

But what if we wanted to represent the number 5?
You don't see a number 5 here, do you?
[Only registered and activated users can see links. Click Here To Register...]

This is where math plays a role.
Think of 2 numbers that makes 5...

Though of any yet?
4 + 1 does. If we then turns the bits on that represents 4 and 1, well guess what that represents 5.
[Only registered and activated users can see links. Click Here To Register...]

Now you should be able to understand how to write numbers using binary.
Then let's take a look at writing messages.
We know that 1 byte represents 8 bits. Now to understand how to write messages then you need to understand a character represents 1 byte.
So a byte is basically equal to a character.

We'll take a look at ASCII now.
Take a look at this:
[Only registered and activated users can see links. Click Here To Register...]

That is the ASCII character table.
We'll be focusing on the column "DEC" and the column "CHAR".

Now I'm not trying to make you memorize the whole ASCII table, because that might be hard.

Instead of trying to remember what decimal each character represent then try to group the table which it already is.

(Signed byte)
Non-characters goes from 0-31.
Characters-A goes from 32-47
Numbers goes from 48-57
Characters-B goes from 58-64
Upper-case characters goes from 65-90
Characters-C goes from 91-96
Lower-case characters goes fom 97-122
Characters-D goes from 123-126
Delete is 127
(Unsigned byte)
Extended characters goes from 128-255

Now if you can learn the basic groups. Numbers, Uper-case characters and Lower-case characters. Just their start offsets then you can already write messages.

If you know the alphabet that is.

The decimal column represents the number of bits the byte should be.
Ex. A would be 65 bits.
This would be the binary number for A:
[Only registered and activated users can see links. Click Here To Register...]

Because 64 + 1 = 65.

So if you've learned how to memorize the groups of the ASCII table then you should be able to find the next character for your message.
As you already know Upper-cases starts at 65 and Lower-case at 97.
Then let's say we want F. Then we just start from A (65) and then counts one up untill we reach F.

Try to see if you can understand this message without using a translator!
Code:
01000011 01101111 01101110 01100111 01110010 01100001 01110101 01110100 01101100 01100001 01110100 01101001 01101111 01101110 01110011 00101100 00100000 01111001 01101111 01110101 00100000 01101110 01101111 01110111 00100000 01110101 01101110 01100100 01100101 01110010 01110011 01110100 01100001 01101110 01100100 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00101110
I hope this helped you learning and understanding binary.
03/07/2013 12:34 xXKonaXx#2
Really helpful, thanks. :)
03/07/2013 15:09 GodHacker#3
Nice but this picture isnīt so good.
Quote:
Originally Posted by Super Aids View Post
[Only registered and activated users can see links. Click Here To Register...]
At this picture you can see it better.
Picture:
03/07/2013 23:14 xMischa#4
nice, danke fürs verstehen lernen.
03/08/2013 00:44 Super Aids#5
Quote:
Originally Posted by GodHacker View Post
Nice but this picture isnīt so good.


At this picture you can see it better.
Picture:
Yes, thank you for this. I will eventually update all the images :)
03/12/2013 20:03 soly95#6
Thanks Very Helpful and ur Message:

Congratulations, You now understand binary.