Updated on 2026-09-24 GMT+08:00

Creating a Key

The key serves as the core security credential for encrypting and decrypting database fields. By generating dedicated, high-security encryption keys, organizations can provide highly robust protection for business-sensitive data. Additionally, the use of independent encryption keys enables data encryption isolation—preventing the cross-usage of encryption keys across different business datasets—and effectively prevents the leakage of sensitive data in plaintext. This ensures the storage security of both existing historical data and newly added business data, serving as the fundamental security foundation for subsequent field encryption, data read/write decryption, and the seamless, compliant operation of business systems.

Procedure

  1. Logging In to the Database Encryption System using the system administrator (sysadmin) account.
  2. Select Rule Management> Encryption Rule from the left-side navigation tree; the system then creates default encryption rules for the built-in algorithms, as shown in Figure 1.

    Figure 1 Encryption rules page

  3. If you are using the system's built-in encryption rules, you can skip this step.

    If you need to create your own encryption rule, click Add Encryption Rule, then fill in the required information on the add encryption rule page to create an encryption category. The add encryption rule page is shown in Figure 2; the parameter descriptions for adding an encryption rule are provided in Table 1.

    Figure 2 Adding an encryption rule
    Table 1 New encryption rule parameter documentation

    Parameter

    Description

    Encryption Rule Name

    You can enter a custom rule name as needed.

    Recommended naming convention:

    • Named after the algorithm. For example: SM4
    • The name combines an algorithm with an encryption mode; e.g., SM4_GCM.

    Encryption Algorithm and Mode

    Select the supported encryption method from the dropdown menu.

    In compliance with China's national cryptographic standards and security requirements, the system defaults to providing the SM4_GCM algorithm as well as the SM4 algorithm operating in GCM mode.

  4. Click on the right side of the existing encryption rule on the left to open the Add Key page, as shown in Figure 3.

    Figure 3 Adding a key

  5. Enter the key name on the pop-up page, then click Confirm. The parameters for adding a new key are shown in Table 2.

    Table 2 Key configuration parameters explanation

    Parameter

    Description

    Secret Key Name

    Custom string – fill in according to business requirements. Example: ERP encryption key.

    Encryption Algorithm

    Algorithm mode of the current key. This parameter is read-only and cannot be modified.

  6. After saving, view the results; the final display is shown in Figure 4.

    Figure 4 Viewing the key