Encrypt Data Disk and Snapshot
Overview
Once a data disk is encrypted, both the dynamic transmission data and static data within the disk are encrypted. New Cloud Disk Servers created from snapshots of the encrypted disk will also be encrypted.
Encrypt the data disk when creating a Baidu Cloud Compute (BCC) Instance
1. Sign in to the Baidu AI Cloud official website
Sign in to Baidu AI Cloud official website.
- If you have not registered an account, you must first [register an account](UserGuide/Register an account.md#Register a Baidu Account).
- If you have registered an account, you can directly sign in.
2. Access the BCC console
Navigate to the BCC console by selecting "Baidu Cloud Compute > Baidu Cloud Compute (BCC)" in the left sidebar.
3. Creating New BCC Cloud Compute
Click "Create Instance" at the top of the console page to create a new BCC instance.

4. Encrypt Data Disk
Click "Create Cloud Disk Server" to add a data disk to the Baidu Cloud Compute. Then click the "Enable" button below to activate the Disk Encryption feature. If enabling CDS Disk Encryption for the first time, you must authorize CDS to access and use your created KMS master keys and review KMS billing details. If you haven’t activated the KMS service, you must enable it first.
After enabling Disk Encryption, CDS will automatically retrieve your created KMS master keys within this region. If your master key does not appear in the drop-down menu, possible reasons include:
- You have not created a KMS key yet. Please proceed to the KMS console to create one;
- KMS is Region-specific. If you have not created a KMS key in this Region, please proceed to the KMS console to create one;
- The KMS Key type you created in this Region does not support associated disk encryption. Please create BAIDU_AES_256, AES_128 or AES_256 type keys.

5. Use Encrypted Cloud Disk Server
After the Baidu Cloud Compute (BCC) Instance is created, the Data Disk will be automatically encrypted and decrypted when you use the Cloud Disk Server, with no manual operation required. All snapshots created from this disk will be automatically encrypted, and new Cloud Disk Servers (CDS) generated from these snapshots will continue to use the same encryption key. For detailed usage restrictions, refer to Encryption Overview.

Encrypt Data Disk when creating CDS Cloud Disk Server
1. Sign in to the Baidu AI Cloud official website
Sign in to Baidu AI Cloud official website.
- If you have not registered an account, you must first [register an account](UserGuide/Register an account.md#Register a Baidu Account).
- If you have registered an account, you can directly sign in.
2. Access the BCC console
Navigate to the BCC console by selecting "Baidu Cloud Compute > Baidu Cloud Compute (BCC)" in the left sidebar.
3. Create a new Cloud Disk Server (CDS)
Click "Disk" on the left-hand sidebar to view the disk list, then click "Create Disk" at the top to create a new data disk.
4. Encrypt Data Disk
Click the "Enable" button below to activate the Disk Encryption feature. The creation method is identical to encrypting Data Disks when creating Baidu Cloud Compute (BCC).

5. Use Encrypted Cloud Disk Server
After creation, you can use this encrypted CDS Cloud Disk Server. Usage and restrictions are identical to encrypting Data Disks when creating Baidu Cloud Compute BCC.

