CREATE ENCRYPT RULE
PLAIN
specifies the plain column,CIPHER
specifies the cipher columnencryptAlgorithmType
specifies the encryption algorithm type, please refer to Encryption Algorithm- Duplicate
tableName
will not be created queryWithCipherColumn
support uppercase or lowercase true or false
Create a encrypt rule
CREATE ENCRYPT RULE t_encrypt (
COLUMNS(
),QUERY_WITH_CIPHER_COLUMN=true),
t_encrypt_2 (
COLUMNS(
(NAME=user_id,PLAIN=user_plain,CIPHER=user_cipher,TYPE(NAME='AES',PROPERTIES('aes-key-value'='123456abc'))),
(NAME=order_id, CIPHER=order_cipher,TYPE(NAME='MD5'))
CREATE
, ENCRYPT
, , COLUMNS
, NAME
, CIPHER
, PLAIN
, QUERY_WITH_CIPHER_COLUMN
, TYPE
, TRUE
, FALSE