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

KeyDatatypeRequiredDescription
opc-request-idstringUnique 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-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;ciphertext&quot;:&quot;\u003cstring\u003e&quot;,&quot;encryptionAlgorithm&quot;:&quot;AES_256_GCM&quot;,&quot;keyId&quot;:&quot;\u003cstring\u003e&quot;,&quot;keyVersionId&quot;:&quot;\u003cstring\u003e&quot;}