Help Center> Data Encryption Workshop> User Guide (ME-Abu Dhabi Region)> Management> Encrypting and Decrypting Small Data Online
Updated on 2022-02-22 GMT+08:00

Encrypting and Decrypting Small Data Online

This section describes how to use an online tool to encrypt and decrypt data less than or equal to 4 KB on the KMS console.

  • The online tool cannot encrypt or decrypt small data by using Default Master Keys.
  • You can call APIs to use a Default Master Key to encrypt or decrypt small data. For details, see the Key Management Service API Reference.

Prerequisites

  • You have obtained an account and its password for logging in to the management console.
  • The desired CMK is in Enabled status.

Encrypting Data

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. Choose Security > Key Management Service. The Key Management Service page is displayed.
  4. Click the alias of the desired CMK to view its details on the online data encryption page.
  5. Click Encrypt. In the text box on the left, enter the data to be encrypted.

    Figure 1 Encrypting data

  6. Click Execute. The data encryption result is displayed in the text box on the right.

    • The key you clicked is used for encryption.
    • To clear your input, click Clear.
    • To copy the encrypted data, click Copy to Clipboard. You can then paste and save it to a local file.

Decrypting Data

  1. Log in to the management console.
  2. Choose Security > Key Management Service. The Key Management Service page is displayed.
  3. Click the alias of an enabled key (excepting Default Master Keys) to open the online tool page.
  4. Click Decrypt. In the text box on the left, enter the data to be decrypted.

    • The online tool automatically identifies the key used for data encryption, and uses it to decrypt data.
    • If the key has been deleted, the decryption will fail.

  5. Click Execute. The data decryption result is displayed in plaintext in the text box on the right.

    To copy the decrypted data, click Copy to Clipboard. You can then paste and save it to a local file.