Secure Exchanges SDK Documentation
Search Results for

    Show / Hide Table of Contents

    Class SEEHelper

    SEE (Secure Exchanges Encrypted) Helper. This helper create file .see A See file is a encrypted File with AES 256. The key are stored in the file and are encrypted with a private key We recommand used a 4096 private key

    Inheritance
    object
    SEEHelper
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: SecureExchangesSDK.Helpers
    Assembly: SecureExchangesSDK.dll
    Syntax
    public class SEEHelper

    Methods

    CreateSeeFile(string, string, bool, long)

    Create a see file. The see file is encrypted with AES 256 bits keys. The AES 256 bits keys are encrypted with the PKCS of the xml publickey. We recommand a 4096 PKCS keys.

    Declaration
    public Task<bool> CreateSeeFile(string originalFilePath, string xmlPublicKey, bool storeFileIntegrity = true, long blocSize = 2097152)
    Parameters
    Type Name Description
    string originalFilePath

    The file you need to encrypt

    string xmlPublicKey

    The public key to encrypt the file

    bool storeFileIntegrity

    Did the system need to store the SHA1512 hash of the file. That will slower the process

    long blocSize

    The bloc size

    Returns
    Type Description
    Task<bool>

    IsEncryptionKeyHashMatch(string, string)

    Validate if the file was encrypted with the same key

    Declaration
    public Task<bool> IsEncryptionKeyHashMatch(string filePath, string xmlPublicKey)
    Parameters
    Type Name Description
    string filePath

    File's path

    string xmlPublicKey

    the xml public key that is use to encrypt

    Returns
    Type Description
    Task<bool>

    UnEncryptSeeFile(string, string, string, bool, long)

    Unencrypt see file. You need the PCKS private key that was used to encrypt the see file

    Declaration
    public Task<bool> UnEncryptSeeFile(string seeFilePath, string outputDir, string xmlPrivateKey, bool validateFileIntegrity = true, long blocSize = 2097152)
    Parameters
    Type Name Description
    string seeFilePath

    see file path

    string outputDir

    The directory where will be saved the file. The file will have the name of the original file. Ex : myFile.zip.see will be myFile.zip

    string xmlPrivateKey

    The xml private key

    bool validateFileIntegrity

    Do the system need to validate the integrity at the end of the decryption process

    long blocSize

    The bloc size of the file. To retreived the header. Wrong bloc size will slower the process

    Returns
    Type Description
    Task<bool>

    Extension Methods

    ExtensionHelper.CopySameNameAndTypeProperties<T, S>(T, S)
    In this article
    Back to top Secure Exchanges Inc. - Documentation