icon-arrow-down-xplenty

Decrypt

Description


Decrypt an Xplenty encrypted string using the specified AWS KMS key ARN and the encryption context used for the encryption.

Syntax


Decrypt(‘encrypted_message’, ‘keyARN’ [,TOMAP('key1','val1'...)])

Arguments


encrypted_message (string) - containing the cipher text and encrypted data key.

keyARN (string) - AWS KMS Key’s ARN.

encryption_context (map of key values) - TOMAP('key1', 'val1', 'key2', 'val2'....)

Examples


Decrypt(‘my encrypted message’, ‘keyARN’, TOMAP('key1','val1')) returns the original plaintext data

Return value datatype


String containing the original plaintext data.

Note: Decrypt is a premium Xplenty function, please contact your Xplenty Account Manager or email hello@xplenty.com to have this feature added to your account. 

Feedback and Knowledge Base

icon-arrow-down-xplenty