Thread: 32 Byte Hex Converted To 2 byte??

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by Turbo7 View Post
    I input 0000, 0000, 0401, 0462, 0442, 0000, 0033, 0510, 0551, 0441, 0000, 0000, 0000, 0000, 0128, 0000 = what? its not EB DB.
    Well, if you write 1 if you have a number and 0 if you have zero, you get 00111011 11000010, which is 0x3b c2. This is the code-like object I posted above.

    As you can see, it's not a reversible operation, since we have two different "results" for BF FF; but they must have the 0000 in the same place.

  2. #2
    Registered User
    Join Date
    Nov 2018
    Posts
    9
    Quote Originally Posted by tabstop View Post
    Well, if you write 1 if you have a number and 0 if you have zero, you get 00111011 11000010, which is 0x3b c2. This is the code-like object I posted above.

    As you can see, it's not a reversible operation, since we have two different "results" for BF FF; but they must have the 0000 in the same place.
    So if it's not reversible that mean I cant find out what I need?

    If I take:
    0431, 0000, 0154, 0153, 0151, 0157, 0051, 0052, 0160, 1020, 0075, 2197, 0152, 0158, 0057, 0058
    to
    0431, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000
    BF FF should be something like B0 00 or 80 00 right? If so, how do I get there.

    I want to put in:
    0431, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000
    and get
    "The Correct Output"
    Can this not be done in C?

  3. #3
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by Turbo7 View Post
    So if it's not reversible that mean I cant find out what I need?
    If you have the original, and the control string, then you can get to the result. But you need both of the inputs.
    Quote Originally Posted by Turbo7 View Post
    I want to put in:
    0431, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000
    and get
    "The Correct Output"
    Can this not be done in C?
    Not without specifying the 0x80 00 (or whatever pattern you need).

  4. #4
    Registered User
    Join Date
    Nov 2018
    Posts
    9
    Quote Originally Posted by tabstop View Post
    If you have the original, and the control string, then you can get to the result. But you need both of the inputs.

    Not without specifying the 0x80 00 (or whatever pattern you need).
    So with me having BF FF and 0431, 0000, 0154, 0153, 0151, 0157, 0051, 0052, 0160, 1020, 0075, 2197, 0152, 0158, 0057, 0058 I cant find out the sequence on how BF FF equals 0431, 0000, 0154, 0153, 0151, 0157, 0051, 0052, 0160, 1020, 0075, 2197, 0152, 0158, 0057, 0058?

    So therefore I stuck, I know for a fact that someone has figured out the BF FF sequence but you know things like this people keep to themselves.

    As far as 80 00 that was some random sequence I picked. So a bit more info 00 00 mean off (do not display number) and BF FF mean on (display number in long hex string i.e. 0154), if want to not to display 0154 only would would need the correct BF FF sequence, therefor BF FF is no longer BF FF it is something else, and that else is what I am looking for.

  5. #5
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by Turbo7 View Post
    So with me having BF FF and 0431, 0000, 0154, 0153, 0151, 0157, 0051, 0052, 0160, 1020, 0075, 2197, 0152, 0158, 0057, 0058 I cant find out the sequence on how BF FF equals 0431, 0000, 0154, 0153, 0151, 0157, 0051, 0052, 0160, 1020, 0075, 2197, 0152, 0158, 0057, 0058?

    So therefore I stuck, I know for a fact that someone has figured out the BF FF sequence but you know things like this people keep to themselves.

    As far as 80 00 that was some random sequence I picked. So a bit more info 00 00 mean off (do not display number) and BF FF mean on (display number in long hex string i.e. 0154), if want to not to display 0154 only would would need the correct BF FF sequence, therefor BF FF is no longer BF FF it is something else, and that else is what I am looking for.
    I'm not sure I've got another different explanation in me, but I'll try. There are two inputs and one output:
    Code:
    input 1 (?????) : 0431 GGGG 0154 0153 0151 0157 0051 0052 0160 1020 0075 2197 0152 0158 0057 0058
    input 2 (BF FF) :  on  off  on   on   on   on   on   on   on   on   on   on   on   on   on   on
    ---------
    output  (above) : 0431 0000 0154 0153 0151 0157 0051 0052 0160 1020 0075 2197 0152 0158 0057 0058
    The on/off pattern from input 2 is just the binary representation of BF FF. The GGGG represent some input value that you haven't bothered to tell anybody; and because the whole point of this process is to mask off numbers and make them 0000, you can't tell just from the result what those original values were. The thing you need to realize before we can really go anywhere with this thread is that the long string you have is the output, not the input. As long as you think of them as input, we're just going to keep going around in this same circle.

  6. #6
    Registered User
    Join Date
    Nov 2018
    Posts
    9
    Quote Originally Posted by tabstop View Post
    I'm not sure I've got another different explanation in me, but I'll try. There are two inputs and one output:
    Code:
    input 1 (?????) : 0431 GGGG 0154 0153 0151 0157 0051 0052 0160 1020 0075 2197 0152 0158 0057 0058
    input 2 (BF FF) :  on  off  on   on   on   on   on   on   on   on   on   on   on   on   on   on
    ---------
    output  (above) : 0431 0000 0154 0153 0151 0157 0051 0052 0160 1020 0075 2197 0152 0158 0057 0058
    The on/off pattern from input 2 is just the binary representation of BF FF. The GGGG represent some input value that you haven't bothered to tell anybody; and because the whole point of this process is to mask off numbers and make them 0000, you can't tell just from the result what those original values were. The thing you need to realize before we can really go anywhere with this thread is that the long string you have is the output, not the input. As long as you think of them as input, we're just going to keep going around in this same circle.
    Ok this looks good, so

    Code:
    input 1 (?????) : 0431 GGGG 0154 0153 0151 0157 0051 0052 0160 1020 0075 2197 0152 0158 0057 0058
    input 2 (BF FF) :  on  off  on   on   on   on   on   on   on   on   on   on   on   on   on   on
    ---------
    output  (above) : 0431 0000 0154 0153 0151 0157 0051 0052 0160 1020 0075 2197 0152 0158 0057 0058
    To this:
    Code:
    input 1 (?? ??) : 0431 GGGG 0154 0153 0151 0157 0051 GGGG 0160 1020 0075 2197 0152 0158 0057 0058
    input 2 (BF FF) :  on  off  on   on   on   on   on   off   on   on   on   on   on   on   on   on
    ---------
    output 1 (?? ??) : 0431 0000 0154 0153 0151 0157 0051 0000 0160 1020 0075 2197 0152 0158 0057 0058
    output 2 (?? ??) :  on  off  on   on   on   on   on   off   on   on   on   on   on   on   on   on
    Also 0000 that you called GGGG i did not change that, it is there by default.

  7. #7
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by Turbo7 View Post
    Also 0000 that you called GGGG i did not change that, it is there by default.
    The 0000 is there only because the B byte masked it off; it is (almost certainly) not the original starting value.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 01-22-2016, 03:20 AM
  2. File Comparision byte by byte
    By anusha2489 in forum C Programming
    Replies: 12
    Last Post: 05-16-2011, 06:58 AM
  3. reading files byte by byte
    By cpsc in forum C++ Programming
    Replies: 12
    Last Post: 01-07-2011, 03:54 PM

Tags for this Thread