|
-
Dec 24th, 2002, 04:23 PM
#1
Thread Starter
Member
binary code question
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.
Tolkien is the greatest writer ever.
-
Dec 24th, 2002, 06:19 PM
#2
Addicted Member
It says: megarich
GRAHAM
-
Dec 24th, 2002, 08:13 PM
#3
Fanatic Member
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
-
Dec 27th, 2002, 11:13 PM
#4
Thread Starter
Member
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?
Tolkien is the greatest writer ever.
-
Dec 28th, 2002, 01:55 AM
#5
Junior Member
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
-
Dec 28th, 2002, 02:34 AM
#6
So Unbanned
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().
-
Dec 28th, 2002, 03:37 PM
#7
Fanatic Member
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.
Last edited by VisionIT; Dec 28th, 2002 at 03:41 PM.
-
Dec 29th, 2002, 04:18 AM
#8
Fanatic Member
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...
-
Dec 29th, 2002, 09:10 AM
#9
Fanatic Member
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.
-
Dec 30th, 2002, 05:19 PM
#10
Thread Starter
Member
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?
Tolkien is the greatest writer ever.
-
Dec 30th, 2002, 05:58 PM
#11
Fanatic Member
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.
-
Dec 30th, 2002, 06:00 PM
#12
Guru
Real programmers code in binary.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|