The KMS Instance SDK (Go) enables programmatic access to the KMS instance API, facilitating tasks such as encryption, decryption, signature verification, and retrieval of credential values.
Source code
For the source code, see alibabacloud-dkms-gcs-go-sdk.
API documentation
Once you integrate the KMS Instance SDK, you can utilize the KMS instance endpoint to perform operations such as generating data keys, encrypting, decrypting, signing, verifying digital signatures, and accessing credential values. For the API documentation, see Instance API Overview.
Example code
The KMS Instance SDK (Go) offers a comprehensive collection of example code. Below are some commonly used examples. For additional examples, please refer to the SDK source code.
Example file name | Description |
Generate and decrypt data keys. | |
Encrypt and decrypt data (ciphertext data uses envelope format). | |
encrypt_decrypt.go | Encrypt and decrypt data (ciphertext data uses original format). |
sign_verify.go | Perform digital signature and signature verification on data. |
get_secret_value.go | Obtain credential values. |