| Step Details | |
| Introduced in Version | 9.18.0 |
| Last Modified in Version | -- |
| Location | PGP |
The Encrypt String step allows Users to encrypt String data from a flow and assign it a Public Key.
Prerequisites
- This step requires the PGP module to be installed before it will be available in the toolbox.
- Users must download GPG before utilizing this and other PGP steps.
Considerations
In v9.18, PGP steps were moved to a legacy category, and new steps were added. While the new PGP steps use an updated encryption/decryption approach (based on AEAD/OCB mode), both categories of steps can be utilized as they have the same functionality.
Properties
Inputs
| Property | Description | Data Type |
|---|---|---|
| Data | The data that will be encrypted. | String |
| Public Key String | The Public Key from a source outside of Decisions. | String |
Outputs
| Property | Description | Data Type |
|---|---|---|
| EncryptString1_Output | The part of the string that was extracted. | String |

Common Errors
Public Key Cannot be Null
The public key field must be filled in for the step to function correctly.
Exception Message:
Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Encrypt String 1[EncryptString] in flow [Misc Step Tests]: Exception invoking method EncryptString on class PGPSteps
---> DecisionsFramework.LoggedException: Exception invoking method EncryptString on class PGPSteps
---> System.ArgumentNullException: Value cannot be null. (Parameter 's'
at System.ArgumentNullException.Throw(String paramName
at System.Text.Encoding.GetBytes(String s
at Decsisions.PGP.Steps.BouncyCastleProcessor.EncryptString(String data, String publicKeyString
at Decsisions.PGP.Steps.PGPSteps.EncryptString(String publicKeyString, String data
at InvokeStub_PGPSteps.EncryptString(Object, Object, IntPtr*
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
--- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data
Step Changes
| Description | Version | Date | Developer Task |
|---|---|---|---|
| New steps have been added to the PGP Module. Existing steps have been added to the PGP Legacy category in the step toolbox. | 9.18 | December 2025 | [DT-046254] |
Related Information