-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql function cipherColumn not performed #32835
Comments
Can you provide the SQL for example? |
1.the encrypt filed is phone ,user_name
case sql like
The decrypted data cannot be returned |
I am sorry to reply can not support encrypt column in function expression for now. |
@yanwencheng The encryption feature in ShardingSphere currently only supports simple column encryption and decryption, and does not support functions, expressions, or other complex SQL encryption or decryption. The SphereEx commercial edition has a database UDF (User-Defined Function) feature that can adapt to more complex SQL encryption and decryption based on UDFs. Recommand your have a try : https://www.sphere-ex.cn/ |
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. |
shardingsphere-jdbc-core: 5.5.0
mysql:8.0.24
When I set cipherColumn as name,the select statement contains CONCAT_WS。The decryption method is not performed
the same issue is CASE statement within an SQL SELECT query to conditionally return different encrypted fields such as user_name or phone and aliasing the result, it's possible that the encryption/decryption does not work as expected.
The text was updated successfully, but these errors were encountered: