API Name | Description | Note |
Encrypt | Used for encryption | The KeyId and Plaintext parameters are required for this API. For more information, please see the Encrypt API document. |
Decrypt | Used for decryption | The CiphertextBlob parameter is required for this API. For more information, please see the Decrypt API document. |
This example is used for testing
text is used in the following example.tccli kms Encrypt --KeyId 6xxxxxx-xxxx-xxxx-xxxx-5xxxxxxxxx5 --Plaintext 'VGhpcyBleGFtcGxlIGlzIHVzZWQgZm9yIHRlc3Rpbmc='
{"KeyId": "6xxxxxx-xxxx-xxxx-xxxx-5xxxxxxxxx5","RequestId": "23781471-c213-44c5-92a4-731b882e25b5","CiphertextBlob": "Rrnqz5fthTxcSdCYIw5pBoEWLvrdqYNZ0oXKOmvYx/1Oo2R+DqEFPjjfVA1n1RE8PmVITaxuJwu9ZANK9uK3WA==-k-fKVP3WIlGpg8m9LMW4jEkQ==-k-mFM/5PEiMJsKC6fagEOfdlocOyC+a1n8PqaTOlBLT+rqjyKLVHUVtqamMQ3ERsYIe0wYoAMszR/FBrCJZ3a3B7f+8Xg="}
tccli kms Decrypt --CiphertextBlob 'Rrnqz5fthTxcSdCYIw5pBoEWLvrdqYNZ0oXKOmvYx/1Oo2R+DqEFPjjfVA1n1RE8PmVITaxuJwu9ZANK9uK3WA==-k-fKVP3WIlGpg8m9LMW4jEkQ==-k-mFM/5PEiMJsKC6fagEOfdlocOyC+a1n8PqaTOlBLT+rqjyKLVHUVtqamMQ3ERsYIe0wYoAMszR/FBrCJZ3a3B7f+8Xg='
{"Plaintext": "VGhpcyBleGFtcGxlIGlzIHVzZWQgZm9yIHRlc3Rpbmc=","KeyId": "6xxxxxx-xxxx-xxxx-xxxx-5xxxxxxxxx5","RequestId": "bcce3fae-1794-4136-a486-d42780c10702"}
Was this page helpful?