简体   繁体   中英

What is the best way to encode parameters in website link

What is the best way to encode and decode parameters in website link?

I need encode user id by android or ios system and send this parametr to PHP server.

For example: www.example.com/getData.php?uid=[encode id]

Mobiles -> encode
Server -> decode

I am looking for a good algorithm for all platforms (Android, iOS and PHP).

I recommend reading The Comprehensive Guide to URL Parameter Encryption .

Don't Do This:

不加密URL参数。

Do This Instead:

请使用随机生成的ID。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM