SolFSStorage.StorageEncryption property
Filter:
Pascal DLL C++ (DLL/Lib) C++ (VCL) C++ (.NET) C# VB.NETOverview
Sets encryption algorithm for whole-storage encryption.
Declaration
[Pascal]
property StorageEncryption: TSolFSEncryption;
[DLL]
not applicable;
[C++ (DLL/Lib)]
SolFSEncryption get_StorageEncryption()
void set_StorageEncryption(SolFSEncryption Value)
[C++ (VCL)]
__property TSolFSEncryption StorageEncryption;
[C++ (.NET)]
SolFSEncryption get_StorageEncryption()
void set_StorageEncryption(SolFSEncryption Value)
[C#]
SolFSEncryption StorageEncryption
[VB.NET]
Property StorageEncryption As SolFSEncryption
Values of SolFSEncryption
[Pascal] [DLL] [C++ (VCL)] [C++ (.NET)] [C#] [VB.NET] [ActiveX] [VB]
Value
Meaning
ecNoEncryption
0
Encryption is not used.
ecAES256_SHA256
1
AES (256 bit) is used for encryption and SHA is used for hashing.
ecCustom256
2
Custom encryption is used via callback functions (events).
ecAES256_HMAC256
3
AES (256 bit) is used for encryption and SHA is used for hashing. This mode is recommended for use instead of ecAES256_SHA256.
Description
This property specifies encryption for the whole storage (including directories).
The property value is used when the storage is created or when the fixed-sized storage is formatted.
Default value is 0 (no encryption).
Remember to set the StoragePassword property before enabling encryption.
To change the password or encryption algorithm use SetEncryption method.
If you use custom encryption, you must provide handlers for OnDataEncrypt, OnDataDecrypt, OnHashValidate and OnHashCalculate events.
