[algogeeks] Re: Interger Encryption

2006-11-11 Thread howa
L7 寫道: Do you mean a 'mapping'? i.e. 1 -- 4 2 -- 3 3 -- 2 4 -- 1 Where -- means 'maps to'. Or do you want to arrange the bits so that there is always a different result after the operation? i.e. 1 -- [0..0x] 2 -- [0..0x] ... Any ouput is valid given an integer input. i

[algogeeks] Re: Interger Encryption

2006-11-11 Thread L7
Easy to guess is relative. Actually, any mapping from int to int is an (equally) easy one to guess. The encryption part would be to change the mapping on each int or sequence of ints by a rotation or equation. int - int ( '-' represents a map from one to another) Provides 0x possibilities

[algogeeks] Re: Interger Encryption

2006-11-11 Thread howa
L7 wrote: Easy to guess is relative. Actually, any mapping from int to int is an (equally) easy one to guess. The encryption part would be to change the mapping on each int or sequence of ints by a rotation or equation. int - int ( '-' represents a map from one to another) Provides 0x

[algogeeks] Re: Interger Encryption

2006-11-10 Thread L7
Do you mean a 'mapping'? i.e. 1 -- 4 2 -- 3 3 -- 2 4 -- 1 Where -- means 'maps to'. Or do you want to arrange the bits so that there is always a different result after the operation? i.e. 1 -- [0..0x] 2 -- [0..0x] ... Any ouput is valid given an integer input.