Click to See Complete Forum and Search --> : How to Decode Binary!


Limpster
July 29th, 2003, 05:50 PM
Binary Is 1's and 0's, On and Off, True and False. It is the most basic of all lanuages. All computers use binary and all eletronic data is binary. Binary is simple to decode once you learnt he pattern. You must also know that all Keyboard Characters have a number value called ANSI.

Binary Reads from Right to Left. Starting with the first digit equal to 1 you multiply each number by 2. Heres an example

1 0 1 0 1 1 1 0

128 64 32 16 8 4 2 1

If the binary digit is 1 that means its "On" and we keep the cooresponding number, If its 0 it is "Off" and we ditch it. All the number that you keep you then add. An easier way to think of it is to times the binary digit by the cooresponding number and add them.

128*1 + 64*0 + 32*1 + 16*0 + 8*1 + 4*1 + 2*1 + 1*0 = 174

Therefore 10101110 = 174.

If you want to get text from binary you convert the result to a letter using its ANSI value.

01000001

128*0 + 64*1 + 32*0 + 16*0 + 8*0 + 4*0 + 2*0 + 1*1 = 65

65 = "A"

01000001 = "A"

Hope this helps a bit!

I learned this from http://www.pcnineoneone.com (PC911)

manicchester
July 29th, 2003, 06:12 PM
Nice little explanation on calculating binary....I tried the link but it doesn't take me to that site though, just to let you know.

SirSub
July 29th, 2003, 06:31 PM
If you type the link in manually it works...weird

steve.milner
July 29th, 2003, 06:33 PM
To encode binary you need to repeatedly divide by two and write don the remainder, starting with the right hand digit and moving left until you get to zero.

eg.

83 /2 =41 rem 1 => 1
41 /2 =20 rem 1 => 11
20 /2 =10 rem 0 => 011
10 /2 =5 rem 0 => 0011
5 /2 =2 rem 1 => 10011
2 /2 =1 rem 0 => 010011
1 /2 =0 rem 1 => 1010011

83 encoded in binary =1010011

Steve

manicchester
July 29th, 2003, 06:33 PM
Yeah, I figured that the link would work if you typed it in....I was just noting that clicking the link itself doesn't take you there.

hypronix
August 1st, 2003, 09:00 AM
When hovering over the link.. you get...

http://PC911

Otherwise, it's nice. You could have gone into explain the transformation of binary straight to hexa.. since we are dealing with base16 more often these days [well, programs decode it in hexa for us, everything still happens in binary :P]

draziw
August 1st, 2003, 11:59 AM
01001111 01110010 00100000 01111001 01101111 01110101 00100000 01100011 01101111 01110101 01101100 01100100 00100000 01101010 01110101 01110011 01110100 00100000 01110101 01110011 01100101 00100000 01110100 01101000 01100101 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00100000 01110100 01110010 01100001 01101110 01110011 01101100 01100001 01110100 01101111 01110010 00100000 01101111 01101110 00100000 01110100 01101000 01101001 01110011 00100000 01110011 01101001 01110100 01100101 00101110 00101110 00101110


...sorry, but someone had to say it. *runs and ducks* :D


Very basically, binary is "base 2" -- whereas the system you use to count is "base 10" )aka decimal). This implies that subsequent right-to-left digits increase the overall value of by increasing powers of the base, starting from zero...

So, in binary:

101 = 1*2^2 + 0*2^1 + 1*2^0 = 4 + 0 + 1 = 5
1001001 = 1*2^6 + 0*2^5 + 0*2^4 + 1*2^3 + 0*2^2 + 0*2^1 + 1*2^0 = 64+0+0+8+0+0+1 = 73


Similarly, in decimal:


123 = 1*10^2 + 2*10^1 + 3*10^0 = 123


(of course if that didn't work, it'd look pretty funny, eh?)


But, CPUs tend to work in X-bit binary... a 32-bit processor basically runs binary numbers through it's silicon up to 32 1's-or-0's long... or decimals up to approx 4294967296 (2^32).

ASCII, on the other hand, is the machine/system representation of characters in 8-bit-binary or 0 to 256 (technically older systems were 7-bit characters).

Gwala
August 1st, 2003, 12:59 PM
Theres a better way of doing any numerical system

... | base^3 | base ^2 | base^1 | base^0
cross multiplied and added together
... | digit one | digit two | digit three | digit four

So for hexadecimal

16^3 | 16^2 | 16^1 | 16^0
becomes
4096 | 256 | 16 | 1
then multiply by position

using 0xABCD as an example
(A x 4096) + (B x 256) + (C x 16) + (D x 1) is 43981

Common computing numbering schemes are

Base 2 - Binary
Base 8 - Octal
Base 10 - Decimal
Base 16 - Hexadecimal


To do in reverse, you divide each position, subtract amount divided to nearest whole number, and continue to divide the remainder until you get to the last power (X^0) which is the '1's column, which hence becomes the position of your remainder.

-Gwala

whizkid2300
August 1st, 2003, 02:31 PM
Who negged Limp that was not that bad of a Tut you should not of negged him for that.

Whizkid2300

steve.milner
August 1st, 2003, 02:35 PM
Originally posted here (http://www.AntiOnline.com/showthread.php?threadid=#post) by draziw

ASCII, on the other hand, is the machine/system representation of characters in 8-bit-binary or 0 to 256 (technically older systems were 7-bit characters).


<pedantic> Just to be correct it's 0 to 255 actualy

255=11111111
256=100000000

</pedantic>

HTRegz
August 1st, 2003, 11:11 PM
Originally posted here (http://www.AntiOnline.com/showthread.php?threadid=#post) by whizkid2300
Who negged Limp that was not that bad of a Tut you should not of negged him for that.

Whizkid2300

It wasn't his tutorial. That is why he was negged for it. He may have changed a few words around, but it took it directly from PC911, even the example is the same. As well tutorials covering binary, hex and octal have all been posted, posting redundant information isn't appreciated. He should have searched first and checked. Here's an anology for ya: You kiss a girl unexpectedly and she doesn't like it, her instinct is to slap you in the face. Now it may sting for a minute, but it wont' do any permanent damage. However next time you'll remember that slap and act differently. APs are the same thing, it was simply a slap in the face to say hey don't do that again.

Nightfalls_Girl
August 2nd, 2003, 01:11 AM
Personially im glad he posted it, it has helped me.

just maybe next time put a refrence to where you got it from and the auther, other wise its basically copy wright issues.

Nightfalls_girl