Hello! I write a script in php. There are numbers:
16359391
15382371
7177275
15318085
16431130
An example of numbers from the program, with each number, occurs >> 8 and it turns out that the number is smaller, and when doing a bitwise shift with a result of only 8, the value with the initial does not converge. Tell me how to make a bitwise shift without losing numbers and so that when shifting to one of the sides the number was 2 digits less long? or maybe there is some other option? The most important thing in the task is to reduce this number by 2 digits and so that it can be transferred back to the initial number. It should be something like this for different numbers:
16359391
63903
16359391
UPD:
Here is an example code: There is a table
$table = array( 0x003b6c1c, 0x002def61, 0x006effa2, 0x0013045f, 0x00873358, 0x0039e1fd, 0x0061491a, 0x002608bf, 0x00254ed0, 0x004fc7dd, 0x00721a32, 0x0018dce3, 0x001328bc, 0x003e288d, 0x0084387e, 0x004c11e3); $table_index = 13; $b = 16359391; $result = $b ^ $table[$table_index]; $resultfinal = ($result >> 8).$table_index; And with $ resultfinal you need to get 16359391, given that the initial value and the index in the table are unknown, only the last value is known.
$table_indexand$b, but only$resultis known from which you need to get the initial number? There you have $ result via XOR is calculated, right? - rjhdby