Skip to main content

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

  1. Reads ciphertext from CIPHER_TEXT_PARAM.
  2. Converts ciphertext to bytes using CIPHER_TEXT_ENCODING.
  3. Imports the RSA private key from PRIVATE_KEY (PEM format).
  4. Decrypts using the configured PADDING_MODE.
  5. Converts decrypted bytes using PLAIN_TEXT_ENCODING.
  6. Writes the result to PLAIN_TEXT_PARAM.

Example Configuration

ParameterValue
PRIVATE_KEY-----BEGIN PRIVATE KEY-----...
PADDING_MODEOaepSHA256
CIPHER_TEXT_ENCODINGbase64
PLAIN_TEXT_ENCODINGutf8
CIPHER_TEXT_PARAMCIPHER_TEXT
PLAIN_TEXT_PARAMPLAIN_TEXT

Example Result

PLAIN_TEXT = Hello World