GPG I/O streams are managed using bytes rather than characters. This class requires the mbstring extension to be available.
integer strlen( string $string)
This is used for stream-based communication with the GPG subprocess.
string substr( string $string, integer $start, [integer $length = null])