GenerateDataEncryptionKey
POST {{cryptoEndpoint}}/20180608/generateDataEncryptionKey
Generates a key that you can use to encrypt or decrypt data.
Request Body
{"keyId"=>"<string>", "keyShape"=>{"algorithm"=>"AES", "length"=>"<integer>", "curveId"=>"NIST_P384"}, "includePlaintextKey"=>"<boolean>", "associatedData"=>{"consequat_9"=>"<string>", "tempor_01"=>"<string>"}, "loggingContext"=>{"eaa7"=>"<string>"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | Unique identifier for the request. If provided, the returned request ID | |
will include this value. Otherwise, a random request ID will be | |||
generated by the service. | |||
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"ciphertext":"\u003cstring\u003e","plaintext":"\u003cstring\u003e","plaintextChecksum":"\u003cstring\u003e"}