Urgent, how to use PHP to encrypt the URL parameters to decrypt
Since the use of base64_encode () generates too long and is too simple, there is no other way
------Solution--------------------
You can try using JS:
such as: JS encoding the text involves 3 functions: Escape,encodeuri,encodeuricomponent, the corresponding 3 decoding function: unescape,decodeuri,decodeuricomponent
------Solution--------------------
Base64 is only 1/4 longer than the original string.
Still feel long, should be considered from the direction of shortening the original string, rather than the conversion algorithm
Because even if the original string length can be maintained, it is difficult to guarantee that the URL is the appropriate character
------Solution--------------------
References:
Base64 is only 1/4 longer than the original string.
Still feel long, should be considered from the direction of shortening the original string, rather than the conversion algorithm
Because even if the original string length can be maintained, it is difficult to guarantee that the URL is the appropriate character
The specification of the original string customer has been written, and also to encrypt, it is impossible to shorten the original string, only as long as possible to maintain the original length. Base64 is just coding, not encryption, and does not match
------Solution--------------------
References:
Base64 is only 1/4 longer than the original string.
Still feel long, should be considered from the direction of shortening the original string, rather than the conversion algorithm
Because even if the original string length can be maintained, it is difficult to guarantee that the URL is the appropriate character
This method is very good, thank you for your valuable advice