I need some pointers or a practical example on how to encrypt an int to another int, and a secret key would be required to decrypt the value.
Something like:
You want to encrypt just a single 'int' ie q 32/64 bit number? Then the easiest way is to just XOR it with a 32/64bit secret key.