how to use custom encryption algorithm for data encryption. #29668
jennyjin007
started this conversation in
General
Replies: 1 comment
-
Hi @jennyjin007, you can find the sm3 and sm4 algothrim in ShardingSphere plugin repository. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i want to use SM4 algorithm, while ShardingSphere only support AES by default. Anybody got experience on using custom encryption algorithm? How to config the encryptors? Is 'CUSTOM' type correct?
Chat GPT gave the following demo:
encryptors:
sm4_encryptor:
type: CUSTOM
props:
algorithmClassName: com.example.SM4EncryptAlgorithm
key: your_sm4_key
Refs:
"Users can implement the interface to use a custom encryption algorithm for data encryption."
https://shardingsphere.apache.org/document/current/en/reference/encrypt/#the-advantages-of-middleware-encryption-service
BTW, the following map shows SM3,SM4 in built-in algorithm list, is this a typo?
Beta Was this translation helpful? Give feedback.
All reactions