Please help me write an encryption function. please help me write an encryption function. it is mainly used for URL encryption. if I wanted to use MD5, it would be irreversible. I thought about using base64 encryption or urlencode encoding, but these two functions are too long. Please help me customize an encryption function. it is best not to keep it as 16 bits. the smaller the value, the better, and the less than 8 bits, for fear of repetition. Used for URL transmission. it is better to use digits or characters after encryption. Thank you! Remember that it is reversible. ------ Solution --------- ask prawns to write an encryption function
Please help me write an encryption function, mainly used for URL encryption,
If I wanted to use MD5, it would be irreversible. I thought about using base64 encryption or urlencode encoding, but these two functions are too long.
Please help me customize an encryption function. it is best not to keep it as 16 bits. the smaller the value, the better, and the less than 8 bits, for fear of repetition.
Used for URL transmission. it is better to use digits or characters after encryption. Thank you!
Remember that it is reversible.
------ Solution --------------------
Mcrypt
PHP code