question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add EncryptContext parameter to EncryptAlgorithm SPI method

See original GitHub issue

Feature Request

Is your feature request related to a problem?

not

Describe the feature you would like.

In many commercial scenarios, the encryption and decryption of sensitive data requires different implementations of different fields in different tables, so the encryptor SPI should provide the context for developer (for example, table name, field name)

maybe add a parameter EncryptContext in EncryptAlgorithm#encrypt and EncryptAlgorithm#decrypt method?

https://github.com/apache/shardingsphere/blob/0cac7762f763ca1a2fb18ef9841ed4a246598b83/shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-api/src/main/java/org/apache/shardingsphere/encrypt/spi/EncryptAlgorithm.java#L34

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
tristaZerocommented, Aug 17, 2020

@WEIZIBIN Just a ping. What’s your thought? I think the encrypt Rule configuration will help you set the encrypt algorithm for specific tables and columns.

0reactions
tristaZerocommented, Aug 18, 2020

@WEIZIBIN For many users, they just want to give the configuration instead of the program. If there are many appropriate encrypted algorithms for users, they could simply focus on their configuration for tables and columns.

BTW, if you implement some powerful encrypted algorithms, welcome to contribute the community. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Possibly poor performance in SQL rewrite #13893 - GitHub
Remove SchemaAvailable interface and add schemaName param for encrypt #15120. Merged. Add EncryptContext parameter to EncryptAlgorithm and ...
Read more >
RFC 9145 - Integrity Protection for the Network Service ...
Concretely, this document adds integrity protection and optional encryption ... This specification introduces new Variable-Length Context Headers to carry ...
Read more >
HP OpenVMS Version 8.3 New Features and ... - Digiater.nl
an AES encryption algorithm and a user-specified key to encrypt and ... Several new system parameters have been added to this release: •....
Read more >
HP OpenVMS Version 8.3 New Features and ... - manualzz
ENCRYPT$ application program interface (API) changes are minimal with only textual parameter or flag changes required to use the AES algorithm. • AES...
Read more >
RFC 9145 - Integrity Protection for the Network Service Header ...
This specification presents an optional method to add integrity protection directly to the Network Service ... New NSH Variable-Length Context Headers 4.6.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found