Encrypt
- Print
- PDF
Encrypt
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
POST /kms/v1/keys/{keyTag}/encrypt
Encrypt up to 32 KB of data with the current version of the key. It can only be requested as an AES256 or RSA2048 key type.
Request
Request parameters
Parameter Name | Type | Additional Information |
---|---|---|
x-ncp-apigw-timestamp | Header(Required) | |
x-ncp-apigw-signature-v2 | Header(Required) | |
x-ncp-iam-access-key | Header(Required) | |
keyTag | Path(Required) | |
plaintext | Body: String or String list | Base64 Encoded text(Up to 32KB) |
context | Body: String | Base64 Encoded text(Up to 50B). Can only be used as a key to apply convergent encryption |
Request body
{
"plaintext": "string",
"context": "string"
}
Response
Response body
{
"code": "string",
"data": {
"ciphertext": "string"
}
}
Was this article helpful?