Skip to main content

AES Generate Key

Overview

The AES Generate Key step generates a cryptographically secure symmetric key using the AES algorithm.

The generated key is stored in the Message Profile execution parameter collection and can be used by subsequent steps such as encryption or signing workflows.

This step does not modify the request or response body directly. Instead, it produces a reusable key parameter for downstream processing.


Parameters

KEY_SIZE (Input)

Specifies the size of the AES key in bits.

  • Type: Integer
  • Direction: In
  • Default: 128
  • Common Values:
    • 128
    • 192
    • 256

KEY_ENCODING (Input)

Specifies how the generated key should be encoded before being stored.

  • Type: String
  • Direction: In
  • Default: base64
  • Supported Values (depending on implementation):
    • base64
    • hex
    • utf8

The encoded value is what will be stored in the parameter collection.


KEY_PARAM (Output)

Specifies the name of the parameter where the generated key will be stored.

  • Type: String
  • Direction: Out
  • Default: KEY

The generated and encoded key will be available under this parameter name for subsequent steps.

Example:

SESSION_KEY = [generated value]


Execution Context Behavior

This step:

  • Reads input configuration parameters
  • Generates a secure AES key
  • Adds a new parameter to the execution parameter collection

Example Configuration

ParameterValue
KEY_SIZE256
KEY_ENCODINGbase64
KEY_PARAMSESSION_KEY

Result:

SESSION_KEY = [generated value]