VisioForge (c) 2025

Search Results for

    Class VideoEncryptor

    New alternative cross-platform video file encryptor.

    Inheritance
    object
    VideoEncryptor
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: VisioForge.Core.VideoEncryption
    Assembly: VisioForge.Core.dll
    Syntax
    public static class VideoEncryptor

    Methods

    Encrypt(Stream, Stream, string, byte[], EncryptionProgressCallback)

    Encrypts the specified original stream.

    Declaration
    public static void Encrypt(Stream originalStream, Stream encryptedStream, string password, byte[] salt = null, EncryptionProgressCallback progress = null)
    Parameters
    Type Name Description
    Stream originalStream

    The original stream.

    Stream encryptedStream

    The encrypted stream.

    string password

    The password.

    byte[] salt

    The salt.

    EncryptionProgressCallback progress

    The progress.

    Encrypt(string, string, string, byte[], EncryptionProgressCallback)

    Encrypts the specified source file.

    Declaration
    public static void Encrypt(string originalFileName, string encryptedFileName, string password, byte[] salt = null, EncryptionProgressCallback progress = null)
    Parameters
    Type Name Description
    string originalFileName

    Name of the original file.

    string encryptedFileName

    Name of the encrypted file.

    string password

    The password.

    byte[] salt

    The salt.

    EncryptionProgressCallback progress

    The progress.

    EncryptAsync(Stream, Stream, string, byte[], EncryptionProgressCallback)

    Encrypts the specified original stream.

    Declaration
    public static Task EncryptAsync(Stream originalStream, Stream encryptedStream, string password, byte[] salt, EncryptionProgressCallback progress = null)
    Parameters
    Type Name Description
    Stream originalStream

    The original stream.

    Stream encryptedStream

    The encrypted stream.

    string password

    The password.

    byte[] salt

    The salt.

    EncryptionProgressCallback progress

    The progress.

    Returns
    Type Description
    Task

    Task.

    EncryptAsync(Stream, Stream, string, EncryptionProgressCallback)

    Encrypts the specified original stream.

    Declaration
    public static Task EncryptAsync(Stream originalStream, Stream encryptedStream, string password, EncryptionProgressCallback progress = null)
    Parameters
    Type Name Description
    Stream originalStream

    The original stream.

    Stream encryptedStream

    The encrypted stream.

    string password

    The password.

    EncryptionProgressCallback progress

    The progress.

    Returns
    Type Description
    Task

    Task.

    EncryptAsync(string, string, string, byte[], EncryptionProgressCallback)

    Encrypts the specified source file.

    Declaration
    public static Task EncryptAsync(string originalFileName, string encryptedFileName, string password, byte[] salt, EncryptionProgressCallback progress = null)
    Parameters
    Type Name Description
    string originalFileName

    The source file.

    string encryptedFileName

    The destination file.

    string password

    The password.

    byte[] salt

    The salt. 16 bytes.

    EncryptionProgressCallback progress

    The progress.

    Returns
    Type Description
    Task

    Task.

    EncryptAsync(string, string, string, EncryptionProgressCallback)

    Encrypts the specified source file.

    Declaration
    public static Task EncryptAsync(string originalFileName, string encryptedFileName, string password, EncryptionProgressCallback progress = null)
    Parameters
    Type Name Description
    string originalFileName

    The source file.

    string encryptedFileName

    The destination file.

    string password

    The password.

    EncryptionProgressCallback progress

    The progress.

    Returns
    Type Description
    Task

    Task.