Hex!?

Discussion in 'Computer Science & Culture' started by Zero, Jun 16, 2003.

Thread Status:
Not open for further replies.
  1. Zero Banned Banned

    Messages:
    2,355
    Exactly what would one use Hex editing for? Besides hacking into computer games?
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Blindman Valued Senior Member

    Messages:
    1,425
    Hex a handy way to enter colours

    ffffffffHex (white) much better then 256 + 256 * 2^8 + 256 *2^16 + 256 *2^24; (32bit colour with alpha)

    Hex is not used to hack...

    Hex is just another way to write a number.
     
  4. Google AdSense Guest Advertisement



    to hide all adverts.
  5. Ectropic Registered Senior Member

    Messages:
    195
    I think a hood way to use hex would be for use on your taxes. Tell them that you saved money on ink because hex is space saving so you didn't have to deduct the cost of the pen.

    In case you don't understand it and think it is hard it is not. You just have more options for each digit because you can go beyond the normal options for 0-9 and use a-f also.

    Blindman is right, the place I use them the most is in graphics apps where I can set a color using the hex alphanumberals. For example: the number below gets me a nice shade of baby crap.

    9E C5 00 = 158 197 0
     
  6. Google AdSense Guest Advertisement



    to hide all adverts.
  7. well i need a good hex editor, any sugg? i'm gonna use mine for software distribution like the ones that can only install to the c drive but my primary drive is d.
     
  8. Voodoo Child Registered Senior Member

    Messages:
    1,296
    Hex editors are often used for cracking programs or modifying their behaviour when you don't have the source code.

    Good hex editors are Hiew and Hexedit by Expert. HexEdit has a nice hex calculator, graphical interface.
     
  9. Stryder Keeper of "good" ideas. Valued Senior Member

    Messages:
    13,105
    Hex editing is also very good for editing "ON-THE-FLY".
    This means that while something is running, you can edit information stored in RAM (although not many script kiddies have access to this method).

    This can how ever cause alsorts of small problems (like buffer overflows and crashes) but thats one of those things that you do if your dealing with say "development".
     
  10. Mystech Adult Supervision Required Registered Senior Member

    Messages:
    3,938
    Forget hex, man, how about octal? Now there's a number system that's not for panzies!

    Base ten has always worked well for me, other number systems just hurt my head.
     
  11. Ectropic Registered Senior Member

    Messages:
    195
    Octal is child's play. if you understand binary even a little then octal is easy.

    Here is an example of an octal number

    111 010

    111 = binary for 7
    010 = binary for 2

    111 010 = 72
     
  12. Blindman Valued Senior Member

    Messages:
    1,425
    Stryderuunknown.
    You change code with a hex editor to develop?? Don't sound like an easy way to develop.
     
  13. Fen Registered Senior Member

    Messages:
    292
    simple...

    Everyone who doesn't understand hexadecimal should be killed. Immediately.
     
  14. wesmorris Nerd Overlord - we(s):1 of N Valued Senior Member

    Messages:
    9,846
    Actually the fundamental reason that hex is used is because it's a quicker way to desribe the contents of a register in a processor.

    Used to be eight bit registers easily represented by two hex numbers.

    CA = 11001010

    Humans don't generally relate well to the right side of the equation, but the left is something usable - so when people are having to program high level lanuages via assembler code, CA is much easier to remember than 11001010.
     
  15. Stryder Keeper of "good" ideas. Valued Senior Member

    Messages:
    13,105
    Blindman,

    Yes in "Development", how else do you think a person should test for the possibility of "Buffer Overflows" within their projects, and of course how far the potential exploitations could go.
     
  16. Blindman Valued Senior Member

    Messages:
    1,425
    Stryderunknown,

    Maybe they should try putting a
    If(bufferPointer >= MaxBufferlLength) { Error handling code;}
    before you access a buffer and you will never have to test you project for buffer overflows again.

    Buffer overflows, the number one causes of software bugs, and the easiest to prevent.
     
  17. Fen Registered Senior Member

    Messages:
    292
    Most humans can't understand CAh. They should be killed, because decimal is evil.
     
  18. wesmorris Nerd Overlord - we(s):1 of N Valued Senior Member

    Messages:
    9,846
    Far worse than death is job prospects for people with a limited understanding of stuff, unless of course they can be somehow deemed entertaining or they're mafia.
     
  19. Fen Registered Senior Member

    Messages:
    292
    Hexadecimal isn't quite making the job listings, although it's there on a few. Where you do see people getting stupified by it is HTML coders, who are less technical than programmers. Try reading HTML books talk about a "mystic" hexadecimal system, and advise people just to look at the chart to do colors.
     
  20. Blindman Valued Senior Member

    Messages:
    1,425
    When I was young and first learning to program, I loved to create games and graphic demos. back then there were no painting packages at all. I designed all my graphics on graph paper with four colour pencils, then converted the graphics to numbers (0-255). I got so good at it I could instantly recognize four pixels and know the digital and binary representation. Is entered my graphics via decimal numbers, then one day I discovered HEX. I could soon scan the graph paper and type HEX in to the assembler. Sped things up greatly. I used it extensively till I started programing in C.

    The only reason hex was used was for speed and convenience.

    These days Hex is mostly legacy.. In HTML the four colour channels are easily represented in hex, but modern graphics hardware is starting to push the 8 bits per channel, 10 bits 12 even 16bits per channel is starting to make the Hex representation of colour obsolete. Colours are ultimate ether named, (ie Red, Green, DarkBlue) or represented as a set of four floating point number (ie RED with 50% transparence = (1,0,0,0.5))

    Also as CPU's increase there functions they started handling more complex data types.. One of the first adopted by the CPU was floating point numbers. The best and only way to enter them is via digital (ie 1.0, 5.677E+32). Hex is total pointless for these data type.

    HEX used to be used by hackers.. It was simple to write a hex editors and modify code as it ran. Yet today with modern disassembles and very advanced hacking tools HEX is almost forgotten.

    HEX is not dead but it will disappear.

    You wont miss anything if you total ignore HEX.
     
  21. Fen Registered Senior Member

    Messages:
    292
    Floating point is actually binary...decimal is very ill suited for it. Most of your post works if you sub decimal for hexadecimal.
     
  22. Blindman Valued Senior Member

    Messages:
    1,425
    Fen..

    I think Ill stick with decimal when entering floating point numbers.

    Just wounder if you know what this float is 00802644Hex.
     
  23. Fen Registered Senior Member

    Messages:
    292
    Recent versions of C do allow hexadecimal input of floats. I'm just wondering if you are aware that floating point is done in binary, and using decimal to represent it is a very common source of programming error? You do know that you can't represent something like a tenth in binary floating point, right?
     
Thread Status:
Not open for further replies.

Share This Page