In base64 what happens if the character you want to encode isn't A-Z, a-z , + or /?
If I wanted to encode a URL in base64 which has a colon (:) in it what would happen since its not in the base64 index.
In base64 what happens if the character you want to encode isn't A-Z, a-z , + or /?
If I wanted to encode a URL in base64 which has a colon (:) in it what would happen since its not in the base64 index.
You're mixing up the encode and decode sides. Base64 can encode any character. It's only decoding that requires a limited set.
I think you're mixing things up - Base64 can encode ANYTHING, those limits simply define what the actual encoded string looks like.
So, nothing would happen if you encoded a colon in Base64. If you tried decoding a colon, however, it would most likely throw an error.
You can encode any byte sequence into base64. The resulting characters will all be in the allowed 64 chars. And of course when decoding the encoded text must be valid Base64.
Saying it encode any character is a bit missleading since the characters need first to be encoded into bytes. A character and a byte are only equivalent for a few charsets like ASCII.