How Do I Use the Online Tool to Encrypt or Decrypt Small Volumes of Data?
You can use the online tool to encrypt or decrypt data in the following procedures:
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 target custom key to access the key details page. The Tools tab is displayed by default.
- Click Encrypt. In the text box on the left, enter the data to be encrypted, as shown in 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.
![](https://support.huaweicloud.com/intl/en-us/dew_faq/public_sys-resources/note_3.0-en-us.png)
Enter the plaintext on the console, the text will be encoded to Base64 format before encryption.
The decryption result returned via API will be in Base64 format. Perform Base64 decoding to obtain the plaintext entered on the console.
Decrypting Data
- Log in to the management console.
- Click
. Choose .
- You can click any non-default key 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.
- If the key has been deleted, the decryption will fail.
- 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.
- Enter the plaintext on the console, the text will be encoded to Base64 format before encryption.
The decryption result returned via API will be in Base64 format. Perform Base64 decoding to obtain the plaintext entered on the console.
KMS Related FAQs
- What Is Key Management Service?
- What Is a Customer Master Key?
- What Is a Default Key?
- What Are the Differences Between a Custom Key and a Default Key?
- What Is a Data Encryption Key?
- Why Cannot I Delete a CMK Immediately?
- Which Cloud Services Can Use KMS for Encryption?
- How Do Huawei Cloud Services Use KMS to Encrypt Data?
- What Are the Benefits of Envelope Encryption?
- Is There a Limit on the Number of Custom Keys That I Can Create on KMS?
- Can I Export a CMK from KMS?
- Can I Decrypt My Data if I Permanently Delete My Custom Key?
- How Do I Use the Online Tool to Encrypt or Decrypt Small Volumes of Data?
- Can I Update CMKs Created by KMS-Generated Key Materials?
- When Should I Use a CMK Created with Imported Key Materials?
- What Should I Do When I Accidentally Delete Key Materials?
- How Are Default Keys Generated?
- What Should I Do If I Do Not Have the Permissions to Perform Operations on KMS?
- Why Can't I Wrap Asymmetric Keys by Using -id-aes256-wrap-pad in OpenSSL?
- Key Algorithms Supported by KMS
- What Should I Do If KMS Failed to Be Requested and Error Code 401 Is Displayed?
- What Is the Relationship Between the Ciphertext and Plaintext Returned by the encrypt-data API?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore