Create Custom Key
- Print
- PDF
Create Custom Key
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
POST /kms/v1/keys/{keyTag}/create-custom-key
Create a randomized raw key that can be utilized as an encryption 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) | |
requestPlainKey | Body: Boolean | |
bits | Body: Integer | 128, 256, 512 (Default = 256) |
context | Body: String | Base64 Encoded text(Up to 50B). Can only be used as a key to apply convergent encryption |
Request body
{
"requestPlainKey": true,
"bits": 0
}
Response
Response code: 200
Response body
{
"code": "string",
"data": {
"ciphertext": "string",
"key_version": 0,
"plaintext": "string"
}
}
Was this article helpful?