i want to encrypt the url parameters value like
http://www.sitename.com/index.php?userid=12546
into
http://www.sitename.com/index.php?userid=SADFFHGFE
to prevent the robots to hack the userids which is auto incrementing into database and i am not sure about the security of base64_encode and base64_decode. Is there any way to do this??
Hashing user IDs is useless as it’s easily reverted. Encrypting them is neither practical nor necessary – just assign a random user ID when you create a record, and never expose the auto increment ID.