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
  • 94,357
  • 33
  • 195
  • 210
2

You have two options:

  1. you could urlencode the encrypted code
  2. or you could access $_SERVER['REQUEST_URI']
rekire
  • 46,262
  • 29
  • 163
  • 256