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: MD5
Attributes: None
Type: AES
Attributes:
Name | DataType | Description |
---|---|---|
aes-key-value | String | AES KEY |
Type: RC4
Attributes:
Name | DataType | Description |
---|---|---|
rc4-key-value | String | RC4 KEY |
Type: SM3
Attributes:
Name | DataType | Description |
---|---|---|
sm3-salt | String | SM3 SALT (should be blank or 8 bytes long) |
Type: SM4
Attributes:
Name | DataType | Description |
---|---|---|
sm4-key | String | SM4 KEY (should be 16 bytes) |
sm4-mode | String | SM4 MODE (should be CBC or ECB) |
sm4-iv | String | SM4 IV (should be specified on CBC, 16 bytes long) |
sm4-padding | String | SM4 PADDING (should be PKCS5Padding or PKCS7Padding, NoPadding excepted) |
Type:CHAR_DIGEST_LIKE
Attributes:
Name | DataType | Description |
---|---|---|
delta | int | Character Unicode offset(decimal number) |
mask | int | Character encryption mask(decimal number) |
start | int | Ciphertext Unicode initial code(decimal number) |
dict | String | Common words |
rules:
- !ENCRYPT
tables:
t_user:
columns:
username:
cipherColumn: username
encryptorName: name_encryptor
likeQueryColumn: name_like
likeQueryEncryptorName: like_encryptor
encryptors:
like_encryptor:
type: CHAR_DIGEST_LIKE
name_encryptor:
type: AES
props:
aes-key-value: 123456abc