Skip to content
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

Like Encrypt Algorithm problems. #46

Open
acepilot3000 opened this issue Aug 23, 2024 · 2 comments
Open

Like Encrypt Algorithm problems. #46

acepilot3000 opened this issue Aug 23, 2024 · 2 comments
Labels
question Further information is requested

Comments

@acepilot3000
Copy link

This algorithm adds collisions for safety reasons, which can result in a reverse result of 1: N. This may result in different plaintext encrypted ciphertexts being the same, for example, A encrypted result is C, and B encrypted result is also C. In this case, when querying A, there should be both A and B in the query result, and the normal result should not have B.

@acepilot3000
Copy link
Author

10 and 12 using CHAR_ DIGEST_ LIKE encrypt algorithm, all results are 01.
When querying 0, the encrypted result of 0 is 1, and both 10 and 12 will be queried.

@RaigorJiang
Copy link
Contributor

10 and 12 using CHAR_ DIGEST_ LIKE encrypt algorithm, all results are 01. When querying 0, the encrypted result of 0 is 1, and both 10 and 12 will be queried.

If a 1 -> N digest algorithm is used, this may be unavoidable. For short texts, should another hash algorithm be designed?

@RaigorJiang RaigorJiang added the question Further information is requested label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants