RSA Decrypt
RSA Decrypt decrypts ciphertext using a provided RSA private key (PEM format) and outputs the decrypted plaintext.
The step supports configurable padding and encoding options.
Parameters
PRIVATE_KEY
RSA private key in PEM format.
Example:
-----BEGIN PRIVATE KEY----- MIIEvQIBADANBgkqh... -----END PRIVATE KEY-----
Required
PADDING_MODE
Specifies the RSA decryption padding mode.
Supported values:
- Pkcs1
- OaepSHA1
- OaepSHA256
- OaepSHA384
- OaepSHA512
Default: Pkcs1
CIPHER_TEXT_ENCODING
Encoding used to convert the ciphertext string into bytes before decryption.
Supported values:
- base64 (recommended)
- hex
Default: base64
PLAIN_TEXT_ENCODING
Encoding used to convert decrypted bytes into a string.
Supported values:
- utf8
- unicode
- ascii
- base64 (if output should remain base64)
Default: utf8
CIPHER_TEXT_PARAM
Message parameter name that contains the encrypted input.
Default: CIPHER_TEXT
PLAIN_TEXT_PARAM
Message parameter name that receives the decrypted output.
Direction: Out
Default: PLAIN_TEXT
Execution Context Behavior
- Reads ciphertext from CIPHER_TEXT_PARAM.
- Converts ciphertext to bytes using CIPHER_TEXT_ENCODING.
- Imports the RSA private key from PRIVATE_KEY (PEM format).
- Decrypts using the configured PADDING_MODE.
- Converts decrypted bytes using PLAIN_TEXT_ENCODING.
- Writes the result to PLAIN_TEXT_PARAM.
Example Configuration
| Parameter | Value |
|---|---|
| PRIVATE_KEY | -----BEGIN PRIVATE KEY-----... |
| PADDING_MODE | OaepSHA256 |
| CIPHER_TEXT_ENCODING | base64 |
| PLAIN_TEXT_ENCODING | utf8 |
| CIPHER_TEXT_PARAM | CIPHER_TEXT |
| PLAIN_TEXT_PARAM | PLAIN_TEXT |
Example Result
PLAIN_TEXT = Hello World