EncryptStream Method
Encrypts a stream.
Syntax
public fun encryptStream(sourceStream: InputStream?, destStream: OutputStream?)
Remarks
Use this method to encrypt a stream and save the protected message into another stream.
Specify the encryption key in the Key property before calling this method.
This is a one-off encryption method. Don't use it together with granular per-block encryption methods such as EncryptInit, EncryptUpdate, and EncryptFinal.