I have this cipher which is as follows :
Take 2 numbers : A=1011 and B=1010
if the ith bit of X is 1 then shift Y* i times to the left. So in the end you will get something like
1010
1010
1010
So now you Apply XOR on these numbers which results in :
00001010
00010100 (XOR)
01010000 (XOR)
---------
01001110
So you end up getting 2 4-bit numbers from 01001110
: that is 0100
& 1110
So now given 0100
& 1110
how do I reverse this and find the initial X & Y
##Update
So for a given output B : 000073af 00000000
The possible Inputs are :
32
00000001 000073af
32
00000083 000000e5
32
000000e5 00000083
32
000073af 00000001