Transform Data

Invoke the decode operation

SecurityaccessToken
Request
path Parameters
transform-role-name
required
string <name>

name of transform-role

Request Body schema:
data
required
string <plaintext>
tweak
string

The tweak must be supplied if the tweak-source is set to supplied to generated.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

503

Service Unavailable (strongbox sealed)

post/v1/state/strongbox/transform/roles/{transform-role-name}/decode
Request samples
data: 6157-7365-8196-3495
tweak: Ex5vzfS1EfLX9b1n+CdajA==
Response samples
plaintext: 4222-5568-9285-7328

Invoke the encode operation

Encode the supplied data according to the role specification.

SecurityaccessToken
Request
path Parameters
transform-role-name
required
string <name>

name of transform-role

Request Body schema:
data
required
string <plaintext>
tweak
string

A custom tweak may be supplied if the role has been configured with a tweak-source set to supplied

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

503

Service Unavailable (strongbox sealed)

post/v1/state/strongbox/transform/roles/{transform-role-name}/encode
Request samples
data: 4222-5568-9285-7328
tweak: Ex5vzfS1EfLX9b1n+CdajA==
Response samples
tweak: Ex5vzfS1EfLX9b1n+CdajA==
ciphertext: 6157-7365-8196-3495