Results 1 to 12 of 12

Thread: binary code question

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2002
    Location
    Delaware
    Posts
    34

    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.

  2. #2
    Addicted Member
    Join Date
    Feb 2000
    Location
    CWMBRAN,WALES,UK
    Posts
    146
    It says: megarich

    GRAHAM
    ŒÆSÝ-»?

  3. #3
    Fanatic Member scr0p's Avatar
    Join Date
    Oct 2002
    Location
    VA
    Posts
    720
    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
    asdf

  4. #4

    Thread Starter
    Member
    Join Date
    Dec 2002
    Location
    Delaware
    Posts
    34
    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.

  5. #5
    Junior Member phrodu's Avatar
    Join Date
    Dec 2002
    Location
    Telletubbie Land
    Posts
    18
    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

  6. #6
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    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().

  7. #7
    Fanatic Member VisionIT's Avatar
    Join Date
    Nov 2002
    Location
    Workin'...
    Posts
    718
    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.

  8. #8
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662
    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...

  9. #9
    Fanatic Member scr0p's Avatar
    Join Date
    Oct 2002
    Location
    VA
    Posts
    720
    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.
    asdf

  10. #10

    Thread Starter
    Member
    Join Date
    Dec 2002
    Location
    Delaware
    Posts
    34
    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.

  11. #11
    Fanatic Member scr0p's Avatar
    Join Date
    Oct 2002
    Location
    VA
    Posts
    720
    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.
    asdf

  12. #12
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    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
  •  



Click Here to Expand Forum to Full Width