EncryptStream Method
Encrypts a stream.
Syntax
public void encryptStream(java.io.InputStream sourceStream, java.io.OutputStream destStream);
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.