Crypteron C# API  2015.6.1.0
Crypteron.CipherObject.Protector Class Reference

CipherObject allows direct sealing (encrypting) and unsealing (decryption) of regular objects (POCOs). Behind the scenes the entire key management, encryption and tamper protection systems are automatically engaged More...

Static Public Member Functions

static T Seal< T > (T plainObject, string securityPartition=Default.PartitionId, string asRole=Default.RoleId)
 Seal an object's secured properties. The specific properties that are sealed are based upon which properties have been decorated with the Secure attribute. The resulting encrypted object can then be sent to any storage or transport safely. Sealing involves key management, encryption and tamper protection.

At present only the first immediate properties of the object will be secured i.e. object.prop1 versus object.prop1.prop2 More...
 
static T Unseal< T > (T encryptedObject, string securityPartition=Default.PartitionId, string asRole=Default.RoleId)
 Unseals an object's secured properties. The specific properties that are unsealed are based upon which properties have been decorated with the Secure attribute. Unsealing involves key management, decryption and tamper protection checks. More...
 

Detailed Description

CipherObject allows direct sealing (encrypting) and unsealing (decryption) of regular objects (POCOs). Behind the scenes the entire key management, encryption and tamper protection systems are automatically engaged

Member Function Documentation

static T Crypteron.CipherObject.Protector.Seal< T > ( plainObject,
string  securityPartition = Default.PartitionId,
string  asRole = Default.RoleId 
)
static

Seal an object's secured properties. The specific properties that are sealed are based upon which properties have been decorated with the Secure attribute. The resulting encrypted object can then be sent to any storage or transport safely. Sealing involves key management, encryption and tamper protection.

At present only the first immediate properties of the object will be secured i.e. object.prop1 versus object.prop1.prop2

Template Parameters
T
Parameters
plainObjectA standard object (POCO) with properties in cleartext
securityPartitionOptional argument specifying the security partition this object should be sealed for. If not specified, the default security partition is used.
asRoleOptional argument specifying the role that should be sealing this object. If not specified, the default role is used.
Returns
A standard object (POCO) with all or some of it's properties sealed
static T Crypteron.CipherObject.Protector.Unseal< T > ( encryptedObject,
string  securityPartition = Default.PartitionId,
string  asRole = Default.RoleId 
)
static

Unseals an object's secured properties. The specific properties that are unsealed are based upon which properties have been decorated with the Secure attribute. Unsealing involves key management, decryption and tamper protection checks.



At present only the first immediate properties of the object will be unsealed i.e. object.prop1 versus object.prop1.prop2

Template Parameters
T
Parameters
encryptedObjectA standard object (POCO) with it's secure properties encrypted
securityPartitionOptional argument specifying the security partition this object should be sealed for. If not specified, the default security partition is used.
asRoleOptional argument specifying the role that should be sealing this object. If not specified, the default role is used.
Returns
A standard object (POCO) with properties in cleartext