I\'m looking for a way to encrypt/obfuscate an integer ID into another integer. More precisely, I need a function int F(int x), so that
int F(int x)
I found this particular piece of Python/PHP code very useful:
https://github.com/marekweb/opaque-id