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


    I only found algorithms that can define encryption and decryption on 
different fields. The actual scenario is like this. There is a key service that 
uses different keys to encrypt different fields in different tables. The 
current table name can be obtained in the encryption algorithm. The section 
name is useful.
   
   > @WEIZIBIN HI, you can get these info from your rule config. and you can 
create different SPI implementations for each field that you want to encrypt.
   
   I only found algorithms that can define static class name for different 
fields.
   
   My actual scenario is like this. There is a remote service that store 
different secret for encrypting different fields.
   Before encrypting, I must get the secret according to the field name . So, 
It is useful for me can obtained the current field name at the runtime.


----------------------------------------------------------------
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