Encrypt(Stream, Stream, Byte, Byte) | Encrypts a source stream by the Aes algorithm using a randomly generated key and initialization vector, which are returned in key and iv parameters, respectively. The encrypted result is written to the destination stream. Both streams remain open after the encryption is done. |
Encrypt(Stream, Stream, String, Byte) | Encrypts a source stream by the Aes algorithm using the provided password and a randomly generated salt, and writes the encrypted result to the destination stream. Both streams remain open after the encryption is done. |
Encrypt(Stream, Stream, SymmetricAlgorithm, Byte, Byte) | Encrypts a source stream by the provided symmetric algorithm, key and iv, and writes the encrypted result to the destination stream. Both streams remain open after the encryption is done. |
Encrypt(Stream, Stream, SymmetricAlgorithm, Byte, Byte) | Encrypts a source stream by the provided symmetric algorithm, using a randomly generated key and initialization vector, which are returned in key and iv parameters, respectively. The encrypted result is written to the destination stream. Both streams remain open after the encryption is done. |
Encrypt(Stream, Stream, SymmetricAlgorithm, String, Byte) | Encrypts a source stream by the provided symmetric algorithm and password, using a randomly generated salt, and writes the encrypted result to the destination stream. Both streams remain open after the encryption is done. |