PowerTCP Zip Compression for .NET
AesEncryptingStream Constructor




When reading, the data stream to be encrypted. When writing, the stream to be filled with encrypted data.
The encryption level desired. Only Encryption.Aes128Bit, Encryption.Aes192Bit or Encryption.Aes256Bit may be specifed.
The password to be used for encryption.
Creates a stream that will apply AES encryption to all data written to or read from it.
Syntax
Public Function New( _
   ByVal innerStream As Stream, _
   ByVal encryption As Encryption, _
   ByVal password As String _
)
Dim innerStream As Stream
Dim encryption As Encryption
Dim password As String
 
Dim instance As New AesEncryptingStream(innerStream, encryption, password)
public AesEncryptingStream( 
   Stream innerStream,
   Encryption encryption,
   string password
)
public: AesEncryptingStream( 
   Stream* innerStream,
   Encryption encryption,
   string* password
)
public:
AesEncryptingStream( 
   Stream^ innerStream,
   Encryption encryption,
   String^ password
)

Parameters

innerStream
When reading, the data stream to be encrypted. When writing, the stream to be filled with encrypted data.
encryption
The encryption level desired. Only Encryption.Aes128Bit, Encryption.Aes192Bit or Encryption.Aes256Bit may be specifed.
password
The password to be used for encryption.
Remarks

AES encryption will be applied to all bytes passing through this stream. Header and trailer bytes are added.

Flush() must be used after the final Write() to generate trailing authentication code bytes.

See Also

Reference

AesEncryptingStream Class
AesEncryptingStream Members


PowerTCP Zip for .NET Documentation Version 2.1.1
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic