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-apigw-timestamp | Header(Required) | |
x-ncp-apigw-signature-v2 | Header(Required) | |
x-ncp-iam-access-key | Header(Required) | |
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,
"context": "string"
}
Response
Response body
{
"type": "object",
"properties": {
"code": {
"type": "string",
"exampleSetFlag": false
},
"data": {
"type": "object",
"properties": {
"ciphertext": {
"type": "string",
"exampleSetFlag": false
},
"plaintext": {
"type": "string",
"exampleSetFlag": false
}
},
"exampleSetFlag": false
}
},
"exampleSetFlag": false
}
Was this article helpful?