Class MtCipherStream
- Namespace
- SharpPluginLoader.Core.IO
- Assembly
- SharpPluginLoader.Core.dll
Represents a cipher stream. Can be used to encrypt/decrypt data from a stream.
public class MtCipherStream : MtStream, IDisposable
- Inheritance
-
MtCipherStream
- Implements
- Inherited Members
Constructors
MtCipherStream()
public MtCipherStream()
MtCipherStream(nint)
public MtCipherStream(nint instance)
Parameters
instance
nint
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
~MtCipherStream()
protected ~MtCipherStream()
FromStream(MtStream, CipherStreamMode, string)
Creates a new cipher stream from the specified stream and key.
public MtCipherStream? FromStream(MtStream stream, CipherStreamMode mode, string key)
Parameters
stream
MtStreamThe stream to encrypt/decrypt.
mode
CipherStreamModeThe mode to use.
key
stringThe key to use.
Returns
- MtCipherStream
The cipher stream, or null if it could not be created.