Interface IEncryption
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public interface IEncryption
Methods
Decrypt(Byte[], String)
Responsible for decrypting data stored in cache Server
Declaration
byte[] Decrypt(byte[] data, string key)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | decrypted data to desrializble form |
System.String | key |
Returns
Type | Description |
---|---|
System.Byte[] | bytes to be deserialized |
Encrypt(Byte[], String)
Responsible for encrypting serialized data
Declaration
byte[] Encrypt(byte[] data, string key)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | Bytes to be encrypted |
System.String | key |
Returns
Type | Description |
---|---|
System.Byte[] | encrypted Bytes to be stored in cache |
Intialize(IDictionary)
Perform tasks like allocating resources or acquiring connections etc.
Declaration
void Intialize(IDictionary parameters)
Parameters
Type | Name | Description |
---|---|---|
IDictionary | parameters | Startup paramters defined in the configuration |