You need to perform the same operations in reverse.
So lets say for example I know that I can 'decrypt' something through the following process
SkillID += 100;
SkillID /= ClientID;
SkillID ^= 12345;
We can reverse this and say the 'encryption' method would be
SkillID ^= 12345;
SkillID *= ClientID;
SkillID -= 100;
Note: The reverse of XOR is XOR, bit shifting left is replaced with bitshifting right, etc.
Might suggest doing some reading on the subject of boolean algebra so you understand what's going on in the background.
Boolean algebra - Wikipedia, the free encyclopedia