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
originalFilePathstringThe file you need to encrypt
xmlPublicKeystringThe public key to encrypt the file
storeFileIntegrityboolDid the system need to store the SHA1512 hash of the file. That will slower the process
blocSizelongThe bloc size
Returns
IsEncryptionKeyHashMatch(string, string)
Validate if the file was encrypted with the same key
public Task<bool> IsEncryptionKeyHashMatch(string filePath, string xmlPublicKey)
Parameters
Returns
UnEncryptSeeFile(string, string, string, bool, long)
public Task<bool> UnEncryptSeeFile(string seeFilePath, string outputDir, string xmlPrivateKey, bool validateFileIntegrity = true, long blocSize = 2097152)