Click to See Complete Forum and Search --> : binary code question
Zach Elfers
Dec 24th, 2002, 03:23 PM
I don't know where to post this?
Can someone PLEASE decode this for me, or at least give me the formula for binary code so that I can decode it on my own?
0110110101100101011001110110000101110010011010010110001101101000
Thanx.
GRAHAM
Dec 24th, 2002, 05:19 PM
It says: megarich
GRAHAM ;)
scr0p
Dec 24th, 2002, 07:13 PM
Decimal (the number system we use) is base 10, like think about this, the number 1016, the 6 is ones, the 1 is tens, the 0 is hundreds, the 1 is thousands, in this number: 2345, the 5 is ones, the 4 is tens, the 3 is hundreds, 2 is thousands. This number: 452, 2 is ones, 5 is tens, 4 is thousands, that means:
4x100 + 5x10 + 2x1 = 452
Binary, is base2, the number 101, right to left, 1 is ones, 0 is two's, 1 is 4's. So 1x2 + 0x2 + 1x4 = 5, so 101 = 5, confusing as **** huh? ^_^
hex is.. bla bla bla
Zach Elfers
Dec 27th, 2002, 10:13 PM
Now how would you get this to decode to letters?
By the way, I think your math is wrong. You say 101 is 5, but I think that the answer is 4. But then again, I'm tired and that could be keeping me from thinking strait.
You said 1 is in the ones place, 0 is in the 2's place, and 1 is in the 4's place. Why the jump to four?
phrodu
Dec 28th, 2002, 12:55 AM
By the way, I think your math is wrong. You say 101 is 5, but I think that the answer is 4. But then again, I'm tired and that could be keeping me from thinking strait.
101 is 5 because:
000=0
001=1
010=2
011=3
100=4
101=5
110=6
111=7
oh, and you can get "megarich" by putting the binary into a hex editor like hexworkshop
DiGiTaIErRoR
Dec 28th, 2002, 01:34 AM
Originally posted by Zach Elfers
Now how would you get this to decode to letters?
By the way, I think your math is wrong. You say 101 is 5, but I think that the answer is 4. But then again, I'm tired and that could be keeping me from thinking strait.
You said 1 is in the ones place, 0 is in the 2's place, and 1 is in the 4's place. Why the jump to four?
Well. Since binary is base 2. And ascii is base 256. You need to convert it.
Which in binary would be 8 bits per byte, a byte being a character. The maximum for this would be 255, just like chr().
VisionIT
Dec 28th, 2002, 02:37 PM
Originally posted by Zach Elfers
You said 1 is in the ones place, 0 is in the 2's place, and 1 is in the 4's place. Why the jump to four?
Because Binary is BASE 2, as listed in previous posts... the factors are multiples of 2. IE.
------------------------------------------------------------------------------
1024 | 512| 256 | 128| 64 | 32 | 16 | 8 | 4 | 2 | 1 |
------------------------------------------------------------------------------
0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 |
------------------------------------------------------------------------------
Now the binary number listed is...
"11001000110" as the binary is always read backwards.
So the answer would be "787".
Hope this helps.
Regards,
Paul.
{Damn V.Bulletin is removing all the spaces, sorry} phpBB rules.
agent
Dec 29th, 2002, 03:18 AM
Originally posted by Zach Elfers
Now how would you get this to decode to letters?
By the way, I think your math is wrong. You say 101 is 5, but I think that the answer is 4. But then again, I'm tired and that could be keeping me from thinking strait.
You said 1 is in the ones place, 0 is in the 2's place, and 1 is in the 4's place. Why the jump to four?
you are supposed to count powers of two, if i remember correctly, so
the first digit (right to left) is place one
then two, then four, then eight, then sixteen... just keep doubling the value of the previous digit...
scr0p
Dec 29th, 2002, 08:10 AM
If you still dont get how to convert it:
Take the binary: 0110110101100101011001110110000101110010011010010110001101101000
split it into 8 segments
01101101 01100101 01100111 01100001 01110010 01101001 01100011 01101000
Now convert each segment into decimal form, for example the last set of binary digits (01101000) in this example is equal to 104, take a ASCii table and look at what ascii104 is equal, its h, so now go on to the other ones..etc remember that h and H are 2 different ascii keys. www.asciitable.com for a table I think.
Zach Elfers
Dec 30th, 2002, 04:19 PM
Thanks everyone! It is all very complicated to me, but I will work on it. I have found a site that shows me the 8 digit equivalents. This site is a big help. Can you write programs like this, in binary?
scr0p
Dec 30th, 2002, 04:58 PM
What I did to get over it is, first I did a lot of examples (like 10) and then I told my bro like "gimme a number" and I converted it to Binary and checked it, then the opposite, I got a binary # and turned it to decimal, just keep practicing and youLL get it.
Yonatan
Dec 30th, 2002, 05:00 PM
Real programmers code in binary. :rolleyes:
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.