Encryption Algorithm
Background
Encryption algorithms are by the encryption features of Apache ShardingSphere. A variety of algorithms are built-in to make it easy for users to fully leverage the feature.
Parameters
Standard Encrypt Algorithm
AES Encrypt Algorithm
Type: AES
Attributes:
Name | DataType | Description |
---|---|---|
aes-key-value | String | AES KEY |
digest-algorithm-name | String | AES KEY DIGEST ALGORITHM (optional, default: SHA-1) |
Assisted Encrypt Algorithm
MD5 Assisted Encrypt Algorithm
Type: MD5
Attributes:
Name | DataType | Description |
---|---|---|
salt | String | Salt value(optional) |
Operating Procedure
- Configure encryptors in an encryption rule.
- Use relevant algorithm types in encryptors.
Configuration Examples
rules:
- !ENCRYPT
tables:
t_user:
columns:
username:
cipher:
name: username
encryptorName: name_encryptor
assistedQuery:
name: assisted_username
encryptorName: assisted_encryptor
encryptors:
name_encryptor:
type: AES
props:
aes-key-value: 123456abc
assisted_encryptor:
type: MD5
props:
salt: 123456
Related References
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .