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

Question Encryption #348

Closed
belukas opened this Issue May 19, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@belukas
Copy link

belukas commented May 19, 2017

Hi everyone,
first of all let me say thanks for developing this class!!

I experimented the last days with this class and it works fine. I want to encrypt parts of my mysql Database with it. Now my question: when I encrypt e.g. "Hello World!" several times with the same password protected key, I am always getting a different encrypted value... Am I doing something wrong or is this intentionally?

If it is intentionally, I am having a problem, because I am not able to search in my database any more. For the search I wanted to encrypt the "search term" and then search for this encrypted value. But when the same string gets another encrypted value everytime I encrypt it, this kind of search is not possible.

How do you handle this kind of problem - or what do I do wrong?

Thanks a lot in advance for your answer!!

have a good afternoon!!

@paragonie-scott

This comment has been minimized.

Copy link
Collaborator

paragonie-scott commented May 19, 2017

I am always getting a different encrypted value... Am I doing something wrong or is this intentionally?

This is intentional.

If it is intentionally, I am having a problem, because I am not able to search in my database any more.

https://paragonie.com/white-paper/2015-secure-php-data-encryption#index-encrypted-information

@paragonie-scott

This comment has been minimized.

Copy link
Collaborator

paragonie-scott commented May 25, 2017

Actually, this might be more helpful than a one paragraph blurb in a two year old paper: https://paragonie.com/blog/2017/05/building-searchable-encrypted-databases-with-php-and-sql

(I just published it. I'm not being forgetful.)

@defuse defuse closed this Jun 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment