Breaking Samsung Android Passwords/PIN philsmd I'm phil Posts: 2,267 Threads: 16 Joined: Feb 2013 04-12-2013, 03:33 PM Some examples for "salt conversion" for those that are not sure how to get the hex string, the steps are easy, but were not descibed in detail. Of course this conversion is easy, but maybe someone did not get it at fist glance (including me, since the negativ number could be anything... if not explained): Basically we have a 64 bit number (SIGNED). The steps: Code:```standard hex: 0123456789abcdef hex:    pos: 0        0 1        1 2        2 3        3 4        4 5        5 6        6 7        7 8        8 9        9 a       10 b       11 c       12 d       13 e       14 f       15 example: -660806340342588628: 660806340342588628 : 0000 1001 0010 1011 1010 0111 1101 1101 1000 1101 0111 0010 0010 0100 1101 0100 2s complement      : 1111 0110 1101 0100 0101 1000 0010 0010 0111 0010 1000 1101 1101 1011 0010 1100 Decimal            :   15    6   13    4    5    8    2    2    7    2    8   13   13   11    2   12 Hex                :    f    6    d    4    5    8    2    2    7    2    8    d    d    b    2    c Note: 2s complement is (very basically said/reduced) flip the bits and add 1 Note2: you of course only need the 2s complement if bit 64 (sign bit) is 1, the first from the left => f6d45822728ddb2c example2: -1945496149554231618 1945496149554231618: 0001 1010 1111 1111 1100 1010 0111 0000 1011 1010 0001 0001 1111 1001 0100 0010 2s complement      : 1110 0101 0000 0000 0011 0101 1000 1111 0100 0101 1110 1110 0000 0110 1011 1110 Decimal            :   14    5    0    0    3    5    8   15    4    5   14   14    0    6   11   14 Hex                :    e    5    0    0    3    5    8    f    4    5    e    e    0    6    b    e => e500358f45ee06be example3: 4982169084343208092 4982169084343208092: 0100 0101 0010 0100 0011 1000 0110 0010 1011 0011 0011 0101 1100 1000 1001 1100 2s complement      : not needed since positiv! Decimal            :    4    5    2    4    3    8    6    2   11    3    3    5   12    8    9   12 Hex                :    4    5    2    4    3    8    6    2    b    3    3    5    c    8    9    c => 45243862b335c89c``` Hopes this could be of help to someone. Best (P.S. Yes I know you can but it into the calculator OR print it via ANSI C printf too. hehe) « Next Oldest | Next Newest »