在 URL 中传递 base64 编码的字符串 [英] Passing base64 encoded strings in URL
本文介绍了在 URL 中传递 base64 编码的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
通过 GET 参数传递原始 base64 编码字符串是否安全?
Is it safe to pass raw base64 encoded strings via GET parameters?
推荐答案
不,您需要对其进行 url 编码,因为 base64 字符串可以包含+"、="和/"字符,这些字符可能会改变数据的含义 - 看起来像一个子文件夹.
No, you would need to url-encode it, since base64 strings can contain the "+", "=" and "/" characters which could alter the meaning of your data - look like a sub-folder.
有效的 base64 字符如下.
Valid base64 characters are below.
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
这篇关于在 URL 中传递 base64 编码的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文