Encrypt
POST {{cryptoEndpoint}}/20180608/encrypt
Encrypts data using the given EncryptDataDetails resource. Plaintext included in the example request is a base64-encoded value of a UTF-8 string.
Request Body
{"keyId"=>"<string>", "plaintext"=>"<string>", "associatedData"=>{"Ut_c"=>"<string>", "velit1"=>"<string>"}, "encryptionAlgorithm"=>"AES_256_GCM", "keyVersionId"=>"<string>", "loggingContext"=>{"anim_c2"=>"<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","encryptionAlgorithm":"AES_256_GCM","keyId":"\u003cstring\u003e","keyVersionId":"\u003cstring\u003e"}