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
Inherited Members
Namespace: SecureExchangesSDK.Helpers
Assembly: SecureExchangesSDK.dll
Syntax
public class SEEHelper
Methods
CreateSeeFile(String, String, Boolean, Int64)
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 = 2097152L)
Parameters
Type | Name | Description |
---|---|---|
System.String | originalFilePath | The file you need to encrypt |
System.String | xmlPublicKey | The public key to encrypt the file |
System.Boolean | storeFileIntegrity | Did the system need to store the SHA1512 hash of the file. That will slower the process |
System.Int64 | blocSize | The bloc size |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |
UnEncryptSeeFile(String, String, String, Boolean, Int64)
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 = 2097152L)
Parameters
Type | Name | Description |
---|---|---|
System.String | seeFilePath | see file path |
System.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 |
System.String | xmlPrivateKey | The xml private key |
System.Boolean | validateFileIntegrity | Do the system need to validate the integrity at the end of the decryption process |
System.Int64 | blocSize | The bloc size of the file. To retreived the header. Wrong bloc size will slower the process |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |