Encryption of data in transit
Protect data in transit by encrypting network transmissions with HTTPS and encrypting application data with Key Management Service (KMS).
Network transmission encryption
Network transmission encryption transmits data over HTTPS, adding authentication and encryption to HTTP communications. Encrypt network transmissions for all key external-facing services.
Certificate Management Service (Original SSL Certificate) provides network transmission encryption. Certificate Management Service (Original SSL Certificate) works with multiple certification authorities (CAs) in China and internationally to help you switch from HTTP to HTTPS cost-effectively. It provides identity verification and encrypted data transmission for websites and mobile applications.
On-the-fly data encryption
On-the-fly data encryption integrates KMS with your applications to encrypt data before writing it to or reading it from databases and storage services. Integrate the KMS SDK or API into your application to use this feature.
Best practices for on-the-fly data encryption:
Select a data encryption key
KMS provides different key types for cloud product encryption and application encryption. The default KMS key supports cloud product encryption only, not application encryption.
|
Key type |
Key spec |
Encryption method |
Purpose |
Limits |
Fee |
|
Default key |
Aliyun_AES_256 |
GCM |
Server-side encryption of cloud products only |
One default key per Alibaba Cloud UID |
Free |
|
Software-protected key |
|
GCM, ECB, CBC RSAES_OAEP_SHA_256 ECIES_DH_SHA_1_XOR_HMAC |
Server-side encryption for cloud products and client-based encryption for applications |
KMS instance details. |
KMS product billing. |
|
Hardware-protected key |
|
GCM, ECB, CBC RSAES_OAEP_SHA_256 ECIES_DH_SHA_1_XOR_HMAC SM2PKE |
Server-side encryption for cloud products and client-based encryption for applications Finance-grade data encryption Chinese cryptographic algorithms |
KMS instance details. |
KMS product billing. |
-
For application encryption, use software-protected keys.
-
Learn about symmetric and asymmetric key management types and key specs.
Integrate applications with KMS
Integrate your application with KMS through the API or SDK to use the encryption service.
-
Use a RAM role to make API requests.
-
Use a client key to sign and authenticate data between KMS and the application.
Encrypt data in transit
Encrypt application data after it is generated and before it is written to a database. KMS supports symmetric and asymmetric encryption, each with a slightly different workflow.
With symmetric encryption, the encryption operation runs on the KMS server using the symmetric key. Use KMS keys to encrypt and decrypt data online. The following diagram shows the process:

Envelope encryption
With asymmetric encryption (envelope encryption), encryption runs locally in your application environment. The application uses an asymmetric key to interact with KMS and manage a data key — a symmetric key used for local encryption. Use KMS keys for envelope encryption. The following diagram shows the process:
