Decrypt
- Print
- PDF
Decrypt
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
POST /kms/v1/keys/{keyTag}/decrypt
Decrypt the ciphertext encrypted with a key. It can only be requested as an AES256 or RSA2048 key type.
Note
The KMS prefix must be specified exactly with the ciphertext because it will be decrypted with the key version specified in the decryption request.
Request
Request parameters
Parameter Name | Type | Additional Information |
---|---|---|
x-ncp-ocapi-token | Header(Required) | Access Token |
keyTag | Path(Required) | |
ciphertext | Body: String or String list | Base64 Encoded text. |
context | Body: String | Base64 Encoded text(Up to 50B). Can only be used as a key to apply convergent encryption |
Request body
{
"ciphertext": "string"
}
Response
Response body
{
"code": "string",
"data": {
"plaintext": "string"
}
}
Was this article helpful?