WEIZIBIN commented on issue #6835:
URL: https://github.com/apache/shardingsphere/issues/6835#issuecomment-674704281


   > @WEIZIBIN you can create different encryptors for each, like this:
   > 
   > ```yaml
   >     sharding:
   >       encrypt-rule:
   >         encryptors:
   >           mobile_encryptor:
   >             type: MobileAESEncryptor
   >           address_encryptor:
   >             type: AddressAESEncryptor
   >         tables:
   >           upms_user_t:
   >             columns:
   >               mobile:
   >                 plainColumn: mobile
   >                 cipherColumn: mobile_cipher
   >                 encryptor: mobile_encryptor
   >               address:
   >                 plainColumn: address
   >                 cipherColumn: address_cipher
   >                 encryptor: address_encryptor
   > ```
   
   It works. but this means that an encrypted field requires a period of 
configuration, too many configuration for me.
   If SPI method has a context would help me a lot.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to