X4 Help Center
7.5 7.4 German English
Auto Light Dark
Auto Light Dark
7.5 7.4 German English

RSA Encryption

This adapter encrypts or decrypts input data (byte stream) using the RSA algorithm and outputs a byte stream (2048-bit RSA key).

Note:

The maximum byte length of encrypted input data is the length of the RSA key in bits divided by 8, minus 11 fill bytes. For example, for a 1024-bit RSA key, the maximum byte length is calculated as follows: 1024/8 -11 = 117 bytes; a 2048-bit RSA key decrypts input data with a maximum length of 245 bytes.

Properties

Operation

Defines the operation executed by the function adapter

Possible values:

  • Encrypt: RSA encrypt input data

  • Decrypt: Decrypt RSA-encrypted input data

Parameters

path

Path to the keystore file

Possible values: Any absolute or relative path

alias

Short name of the entry that has a key in the keystore

Possible values: Any string

keyType

Key type used

Possible values:

  • private: Use private key (default)

  • public: Use public key

keystorePassword

Password for the keystore file

Possible values: Any string

privatePassword

Password to obtain the private key from the keystore file

Possible values: Any string

Status values

1

The operation was successful.

-1

The operation failed due to a technical error.