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-ocapi-token | Header(Required) | Access Token |
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": {
"plaintext": "string"
}
}
Was this article helpful?