# Enumeration ENCRYPTION_MODE (/zh-CN/api-reference/rtc/mini-program/enums/encryption-mode)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

## Enumeration members [#enumeration-members]

<a id="aes_128_ecb"></a>

### AES_128_ECB [#aes_128_ecb]

<ApiSignature>

AES_128_ECB: = 2

</ApiSignature>

128 位 AES 加密，ECB 模式。

<a id="aes_128_gcm"></a>

### AES_128_GCM [#aes_128_gcm]

<ApiSignature>

AES_128_GCM: = 5

</ApiSignature>

128 位 AES 加密，GCM 模式。

<a id="aes_128_gcm2"></a>

### AES_128_GCM2 [#aes_128_gcm2]

<ApiSignature>

AES_128_GCM2: = 7

</ApiSignature>

（默认）128 位 AES 加密，GCM 模式。该加密模式需要设置盐值 (`encryptionSalt`)。

<a id="aes_128_xts"></a>

### AES_128_XTS [#aes_128_xts]

<ApiSignature>

AES_128_XTS: = 1

</ApiSignature>

128 位 AES 加密，XTS 模式。

<a id="aes_256_gcm"></a>

### AES_256_GCM [#aes_256_gcm]

<ApiSignature>

AES_256_GCM: = 6

</ApiSignature>

256 位 AES 加密，GCM 模式。

<a id="aes_256_gcm2"></a>

### AES_256_GCM2 [#aes_256_gcm2]

<ApiSignature>

AES_256_GCM2: = 8

</ApiSignature>

256 位 AES 加密，GCM 模式。该加密模式需要设置盐值 (`encryptionSalt`)。

<a id="aes_256_xts"></a>

### AES_256_XTS [#aes_256_xts]

<ApiSignature>

AES_256_XTS: = 3

</ApiSignature>

256 位 AES 加密，XTS 模式。

<a id="mode_end"></a>

### MODE_END [#mode_end]

<ApiSignature>

MODE_END: = 9

</ApiSignature>

枚举值边界。

<a id="none"></a>

### NONE [#none]

<ApiSignature>

NONE: = 0

</ApiSignature>

不加密。

<a id="sm4_128_ecb"></a>

### SM4_128_ECB [#sm4_128_ecb]

<ApiSignature>

SM4_128_ECB: = 4

</ApiSignature>

128 位 SM4 加密，ECB 模式。
