Alix Axel Alix Axel - 1 year ago 103
PHP Question

Passing base64 encoded strings in URL

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

Answer Source

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+/=