Using the Online Tool to Encrypt and Decrypt Small-Size Data
This section describes how to use the online tool to encrypt or decrypt small-size data (4 KB or smaller) on the KMS console.
Constraints
- Default Master Keys cannot be used to encrypt or decrypt such data with the tool.
- You can call an API to use a default master key to encrypt or decrypt small volumes of data. For details, see the Data Encryption Workshop API Reference.
- Use the current CMK to encrypt the data.
- Exercise caution when you delete a CMK. The online tool cannot decrypt data if the CMK used for encryption has been deleted.
Encrypting Data
- Log in to the management console.
- Click in the upper left corner of the management console and select a region or project.
- Click . Choose .
- Click the alias of the desired CMK to view its details, and go to the online tool for data encryption and decryption.
- Click Encrypt. In the text box on the left, enter the data to be encrypted. For details, see Figure 1.
- Click Execute. Ciphertext of the data is displayed in the text box on the right.
- Use the current CMK to encrypt the data.
- You can click Clear to clear the entered data.
- You can click Copy to Clipboard to copy the ciphertext and save it in a local file.
Decrypting Data
- Log in to the management console.
- Click . Choose .
- You can click any CMK in Enabled status to go to the encryption and decryption page of the online tool.
- Click Decrypt. In the text box on the left, enter the data to be decrypted. For details, see Figure 2.
- The tool will identify the original encryption CMK and use it to decrypt the data.
- However, if the CMK has been deleted, the decryption fails.
- Click Execute. Plaintext of the data is displayed in the text box on the right.
You can click Copy to Clipboard to copy the plaintext and save it in a local file.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.