Class VideoDecryptorStream
New alternative cross-platform video file decryptor that provides a stream. Implements the IDisposable.
Implements
Inherited Members
Namespace: VisioForge.Core.VideoEncryption
Assembly: VisioForge.Core.dll
Syntax
public class VideoDecryptorStream : IDisposable
Methods
DecryptToStream(Stream, string, byte[])
Decrypts to stream.
Declaration
public Stream DecryptToStream(Stream encrypted, string key, byte[] salt = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | encrypted | The encrypted. |
| string | key | The key. |
| byte[] | salt | The salt. |
Returns
| Type | Description |
|---|---|
| Stream | Stream. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Cannot encrypt with empty key |
| ArgumentException | Cannot encrypt with empty salt |
| ArgumentException | Cannot decrypt empty or null byte array |
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
|
~VideoDecryptorStream()
Finalizes an instance of the VideoDecryptorStream class.
Declaration
protected ~VideoDecryptorStream()