RSA Sign Data
RSA Sign Data generates a digital signature for the provided input text using an RSA private key.
The step signs the data using the configured hash algorithm and signature padding mode.
Parameters
PRIVATE_KEY
RSA private key in PEM format used for signing.
Example:
-----BEGIN PRIVATE KEY----- MIIEvQIBADANBgkqh... -----END PRIVATE KEY-----
Required
TEXT_ENCODING
Encoding used to convert input text into bytes before signing.
Supported values:
- utf8
- unicode
- ascii
- base64
Default: unicode
SIGNATURE_ENCODING
Encoding used to convert signature bytes into string output.
Supported values:
- base64 (recommended)
- hex
Default: base64
PADDING_MODE
Specifies the RSA signature padding mode.
Supported values:
- Pkcs1
- Pss
Default: Pkcs1
HASH_ALGORITHM
Specifies the hash algorithm used before signing.
Supported values:
- SHA1
- SHA256
- SHA384
- SHA512
Default: SHA512
TEXT_PARAM
Message parameter name that contains the input text to be signed.
Default: TEXT
SIGNATURE_PARAM
Message parameter name that receives the generated signature.
Direction: Out
Default: SIGNATURE
Execution Context Behavior
- Reads text from TEXT_PARAM.
- Converts the text into bytes using TEXT_ENCODING.
- Loads the RSA private key from PRIVATE_KEY.
- Hashes the data using HASH_ALGORITHM.
- Signs the hash using the configured PADDING_MODE.
- Encodes the signature using SIGNATURE_ENCODING.
- Writes the result to SIGNATURE_PARAM.
Example Configuration
| Parameter | Value |
|---|---|
| PRIVATE_KEY | -----BEGIN PRIVATE KEY-----... |
| TEXT_ENCODING | unicode |
| SIGNATURE_ENCODING | base64 |
| PADDING_MODE | Pss |
| HASH_ALGORITHM | SHA256 |
| TEXT_PARAM | TEXT |
| SIGNATURE_PARAM | SIGNATURE |
Example Result
SIGNATURE = [base64 rsa signature]