I\'m trying to send encrypted data over the url to another site (using file_get_contents(\"anotherUrl.php?hash=$encryptedString\")
. The problem is, sometimes, t
Instead of using Base64 for encoding your data you can also use Base32 (RFC 4648) which is URL-safe because it only uses letters A–Z (case-insensitive) and the digits 2–7. There is already a PHP library for encoding/decoding. Note that Base32 takes ~20% more space than Base64.
You can also use URLcrypt which is a handy library helping you with encryption and Base32 encoding.