The en- and decryption of and to strings assumes that the string is UTF-8 encoded. If the user wants to encrypt a string in an encoding other than UTF-8, he should use the base64:encode($string, $encoding) function (which doesn't exist, yet) to get a base64 item (or the other way around for decrypt).
The en- and decryption of and to strings assumes that the string is UTF-8 encoded. If the user wants to encrypt a string in an encoding other than UTF-8, he should use the base64: encode( $string, $encoding) function (which doesn't exist, yet) to get a base64 item (or the other way around for decrypt).