I have an array of IDs (e.g. array(1, 2, 10, 34, 100, 101)
) that represents files ids of pictures in database.
I would like to send a link to customer by email such that when he press this link he will see the pictures, but I don't want customer to see these files ids!
Thus, I thought to encrypt the array of pictures ids with some key that customer doesn't know, and when customer clicks the link my PHP script will get the encrypted string, decrypt it back to the pictures ids, and send customer a page with the pictures.
Are there any PHP built in functions that can do the encryption/decryption with custom key for me ?
Thanks !!