Passing base64 encoded strings in URL

前端 未结 10 1654
臣服心动
臣服心动 2020-11-22 03:11

Is it safe to pass raw base64 encoded strings via GET parameters?

10条回答
  •  心在旅途
    2020-11-22 04:01

    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.

    Valid base64 characters are below.

    ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
    

提交回复
热议问题