0

I've been looking at this encryption method, which uses base 64.

However, since base64 includes /, when I pass it via a URL the inclusion of / might mess things up. How do I get round this?

Community
  • 1
  • 1
user1066679
  • 95
  • 1
  • 2
  • 8

2 Answers2

3

That answer base 64 encodes it, and since base 64 includes /, you'll want to encode it again, for which you can use urlencode. When you have a urlencoded string, you can get its value with urldecode.

Dominic Rodger
  • 97,747
  • 36
  • 197
  • 212
2

You have two options:

  1. you could urlencode the encrypted code
  2. or you could access $_SERVER['REQUEST_URI']
rekire
  • 47,260
  • 30
  • 167
  • 264