DecryptAsymmetric
→ stringDecrypts a string that was encrypted using an asymmetric private key stored in SFMC Key Management.
Available in:
Email
CloudPage
Automation
Triggered Send
Syntax
Platform.Function.DecryptAsymmetric(encryptedValue, keyName)
2 arguments
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
encryptedValue |
string | Yes | Encrypted ciphertext to decrypt |
keyName |
string | Yes | Name of the private key registered in SFMC Key Management |
Examples
var ciphertext = Platform.Function.Lookup("EncryptedLog", "encryptedValue", "id", rowId);
var plain = Platform.Function.DecryptAsymmetric(ciphertext, "MyPrivateKey");