5.2 Lock/Unlock Text
Last updated
Was this helpful?
Last updated
Was this helpful?
The lockText
function of BayunCore
class locks text 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.
plainText : Text to be locked.
The lockText
function with encryption-policy as an optional parameter locks text 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.
plainText : Text to be locked.
dataType : string
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 unlockText
function of BayunCore
class unlocks a locked text. The function takes the following parameters :
sessionId : Unique SessionId which is received in the authenticate function response.
lockedText : Text to be unlocked.
dataType : string