RSA Cryptography
Discover more about the RSA Cryptography connector and how to use it on the Digibee Integration Platform.
The RSA Cryptography connector encrypts and decrypts based on the RSA algorithm.
Parameters
Take a look at the configuration parameters of the connector. Parameters supported by Double Braces expressions are marked with (DB).
General tab
Account
Account to be used by the connector.
N/A
String
Crypto Operation
Available operation types - Encrypt Fields, Decrypt Fields, Encrypt Payload, Decrypt Payload, Unwrap Key, and Wrap Key.
Encrypt Fields
String
Fields To Encrypt/Decrypt
Fields to be encrypted/decrypted using a dotted notation (e.g., body.field1
, body.field2
, body
).
a.test
String
Payload To Encrypt/Decrypt
Payload to be encrypted/decrypted using dotted notation.
N/A
String
Secret Key
Secret Key to be wrapped/unwrapped using dotted notation.
N/A
String
Operation Mode
Operation mode to be used.
ECB
String
Padding
Used in a block cipher where we fill up the blocks with padding bytes (e.g., AES 128 bits uses 16 padding bytes).
OAEPWithSHA-512AndMGF1Padding
String
Charset
Charset of the provided key of type string.
UTF-8
String
Encrypted Message As Hexa
If the option is activated, the secret key response will be in hexadecimal; otherwise, it will be in base64.
False
Boolean
Fail On Error
If the option is enabled, the execution of the pipeline with an error will be interrupted; otherwise, the pipeline execution proceeds, but the result will show a false value for the "success" property.
False
Boolean
Documentation tab
Documentation
Section for documenting any necessary information about the connector configuration and business rules.
N/A
String
To encrypt or wrap, you must configure a Public Key account. Encrypt operations also support the property key via body with the respective key.
To decrypt or unwrap, you must configure a Private Key account.
Parameters additional information
Wrap and Unwrap Key
Wrap and unwrap operations differ slightly from encrypt and decrypt operations. When you wrap a key, you not only encrypt it but also add integrity protection to ensure the key remains untampered. Similarly, when you unwrap a key, you decrypt it while simultaneously validating its integrity.
In the RSA Cryptography connector, these operations are designed to securely encapsulate a session (or secret) key for transfer through other Digibee connectors, ensuring both confidentiality and integrity.
Since these are experimental features, only one specific configuration is currently supported.
For Wrap Key Crypto Operation
In the Account field, you must select a public key from an RSA 2048-bit key pair.
In the Secret Key field, you must specify a 256-bit AES key from the input payload. Use dotted notation to reference the respective key field.
Values will be encrypted in hexadecimal format.
The RSA wrapping operation will be performed with the following parameters:
Operation Mode: ECB
Padding Scheme: OAEPWithSHA-256AndMGF1Padding
For Unwrap Key Crypto Operation
In the Account field, you must select a private key from an RSA 2048-bit key pair.
In the Secret Key field, you must specify a 256-bit AES key from the input payload. Use dotted notation to reference the respective key field.
Values will be encrypted in hexadecimal format.
The RSA unwrapping operation will be performed with the following parameters:
Operation Mode: ECB
Padding Scheme: OAEPWithSHA-256AndMGF1Padding
Messages flow
Operation: Encrypt Fields
Input
Payload
Output
Operation: Decrypt Fields
Input
Payload
Output
Operation: Wrap Key
Payload
Output
Operation: Unwrap Key
Payload
Output
Last updated