PHP strings are sequences of bytes, not characters. strlen('Привіт') = 12 (bytes), not 6. For correct Unicode handling, use mb_ functions: mb_strlen(), mb_substr(), mb_strtolower().
Encodes binary data as a string of 64 characters (A-Z, a-z, 0-9, +, /). Increases size by ~33%. Not encryption — just encoding. Uses:
data:image/png;base64,iVBOR...base64_encode('Hello') // "SGVsbG8="
base64_decode('SGVsbG8=') // "Hello"