5.3 Lock/Unlock Binary Data
Last updated
Was this helpful?
Last updated
Was this helpful?
The lockData
function of BayunCore
class locks binary data with default encryption-policy dictated by server settings.
The function takes the following parameters :
sessionId : Unique SessionId which is received in the authenticate function response.
data : Data to be locked.
dataType : bytes
data_len : Length of the data to be locked.
The lockData
function with encryption-policy as an optional parameter locks data with the encryption key dictated by the policy. The function takes the following parameters :
sessionId : Unique SessionId which is received in the authenticate function response.
data : Data to be locked.
dataType : bytes
data_len : Length of the data to be locked.
encryptionPolicy : determines the key for locking.
keyGenerationPolicy : determines the policy to generate the data encryption key.
groupId : GroupId is required if encryptionPolicy is BayunEncryptionPolicyGroup
.
The unlockData
function of BayunCore
class unlocks a locked binary data. The function takes the following parameters :
sessionId : Unique SessionId which is received in the authenticate function response.
data : Data to be unlocked.
dataType : bytes
data_len : Length of data to be unlocked.