Encryption algorithm contains unreadable characters server lost

 

Results encryption algorithm generally contain non-printable characters, resulting in the result string unreadable.
So only then base64 encoded into a readable string, said (expanded into 3 bytes 4 bytes)
Of course, you can also be directly expressed in hexadecimal (expanded to 1 byte 2 bytes).

 

java background can be used:

String data = “zzzzw”;

URLEncoder.encode(data,"UTF-8");  

URLDecoder.decode(data,"UTF-8");

 

 

References:

https://www.cnblogs.com/Alan-Wang/p/6111230.html

https://www.cnblogs.com/panxuejun/p/6550131.html

Guess you like

Origin www.cnblogs.com/zzzzw/p/10959401.html