Class VideoDecryptor
New alternative cross-platform video file decryptor.
Inherited Members
Namespace: VisioForge.Core.VideoEncryption
Assembly: VisioForge.Core.dll
Syntax
public static class VideoDecryptor
Methods
Decrypt(Stream, Stream, string, byte[], EncryptionProgressCallback)
Decrypts the specified source stream.
Declaration
public static void Decrypt(Stream encryptedStream, Stream decryptedStream, string password, byte[] salt = null, EncryptionProgressCallback progress = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | encryptedStream | Encrypted stream. |
| Stream | decryptedStream | Decrypted stream. |
| string | password | The password. |
| byte[] | salt | The salt. |
| EncryptionProgressCallback | progress | The progress callback. |
Decrypt(string, string, string, byte[], EncryptionProgressCallback)
Decrypts the specified source file.
Declaration
public static void Decrypt(string encryptedFileName, string decryptedFileName, string password, byte[] salt = null, EncryptionProgressCallback progress = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | encryptedFileName | Name of the encrypted file. |
| string | decryptedFileName | Name of the decrypted file. |
| string | password | The password. |
| byte[] | salt | The salt. |
| EncryptionProgressCallback | progress | The progress callback. |
DecryptAsync(Stream, Stream, string, byte[], EncryptionProgressCallback)
Decrypts the specified source stream.
Declaration
public static Task DecryptAsync(Stream encryptedStream, Stream decryptedStream, string password, byte[] salt = null, EncryptionProgressCallback progress = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | encryptedStream | The encrypted stream. |
| Stream | decryptedStream | The decrypted stream. |
| string | password | The password. |
| byte[] | salt | The salt. |
| EncryptionProgressCallback | progress | The progress. |
Returns
| Type | Description |
|---|---|
| Task | Task. |
DecryptAsync(string, string, string, byte[], EncryptionProgressCallback)
Decrypts the specified source file.
Declaration
public static Task DecryptAsync(string sourceFile, string destFile, string password, byte[] salt = null, EncryptionProgressCallback progress = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | sourceFile | The source file. |
| string | destFile | The dest file. |
| string | password | The password. |
| byte[] | salt | The salt. |
| EncryptionProgressCallback | progress | The progress. |
Returns
| Type | Description |
|---|---|
| Task | Task. |