I've to give the client ID to my customers. As this number will be used in a
third part app, and I only rely on this number for checking the user's
existence (I can't change the third part app), I'd like not to give the flat
number, but an "encoded"
number that let me check if the code is valid.
Let's say client ID = 723
I'd like to have a code quite simple to provide by phone, without any
strange things like @^~... for simple users...
The best things would be an algorithm to crypt the code with a private key
known only by me, and being able to decrypt the code.
I've tried mcrypt_encrypt( ) , but it's an uncknown function (I'm under
Apache, XP).
Cheers
third part app, and I only rely on this number for checking the user's
existence (I can't change the third part app), I'd like not to give the flat
number, but an "encoded"
number that let me check if the code is valid.
Let's say client ID = 723
I'd like to have a code quite simple to provide by phone, without any
strange things like @^~... for simple users...
The best things would be an algorithm to crypt the code with a private key
known only by me, and being able to decrypt the code.
I've tried mcrypt_encrypt( ) , but it's an uncknown function (I'm under
Apache, XP).
Cheers
Comment