Table of Contents

Class SEEHelper

Namespace
SecureExchangesSDK.Helpers
Assembly
SecureExchangesSDK.NetCore.dll

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

public class SEEHelper
Inheritance
SEEHelper
Inherited Members
Extension Methods

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.

public Task<bool> CreateSeeFile(string originalFilePath, string xmlPublicKey, bool storeFileIntegrity = true, long blocSize = 2097152)

Parameters

originalFilePath string

The file you need to encrypt

xmlPublicKey string

The public key to encrypt the file

storeFileIntegrity bool

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

blocSize long

The bloc size

Returns

Task<bool>

IsEncryptionKeyHashMatch(string, string)

Validate if the file was encrypted with the same key

public Task<bool> IsEncryptionKeyHashMatch(string filePath, string xmlPublicKey)

Parameters

filePath string

File's path

xmlPublicKey string

the xml public key that is use to encrypt

Returns

Task<bool>

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

public Task<bool> UnEncryptSeeFile(string seeFilePath, string outputDir, string xmlPrivateKey, bool validateFileIntegrity = true, long blocSize = 2097152)

Parameters

seeFilePath string
outputDir string
xmlPrivateKey string
validateFileIntegrity bool
blocSize long

Returns

Task<bool>