ncloud_kms_encrypt
Encrypt base64-encoded data up to 32KB using a KMS key tag, supporting AES256 or RSA2048 keys and optional convergent encryption context.
Instructions
Encrypt data (up to 32KB) using the current version of a KMS key. Only AES256 or RSA2048 key types supported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyTag | Yes | Key tag - unique identifier derived from key name | |
| context | No | Base64-encoded context for convergent encryption (required if key has convergent encryption enabled, max 50 bytes) | |
| plaintext | Yes | Base64-encoded plaintext data (string or array of strings, max 32KB each) |