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.
Type: AES
Attributes:
Name | DataType | Description |
---|---|---|
aes-key-value | String | AES KEY |
digest-algorithm-name | String | AES KEY DIGEST ALGORITHM (optional, default: SHA-1) |
Type: MD5
Attributes:
Name | DataType | Description |
---|---|---|
salt | String | Salt value(optional) |
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