Query on encrypted fields #70

Closed
opened 2021-03-31 01:10:13 +00:00 by jamie · 3 comments
jamie commented 2021-03-31 01:10:13 +00:00 (Migrated from git.hazaar.io)

I need to be able to query on an encrypted field. I am encrypting an API key in the database and need to take the key given when a client host requests API access and lookup that key in the database. Currently I would have to do this manually but I can make this nicer by doing it transparently during the query.

I need to be able to query on an encrypted field. I am encrypting an API key in the database and need to take the key given when a client host requests API access and lookup that key in the database. Currently I would have to do this manually but I can make this nicer by doing it transparently during the query.
jamie commented 2021-03-31 22:35:31 +00:00 (Migrated from git.hazaar.io)

created merge request !42 to address this issue

created merge request !42 to address this issue
jamie commented 2021-03-31 22:35:31 +00:00 (Migrated from git.hazaar.io)

mentioned in merge request !42

mentioned in merge request !42
jamie commented 2021-04-01 03:37:41 +00:00 (Migrated from git.hazaar.io)

Yeah, I'ma dumbass. This isn't going to be possible. Using algorithms like AES and such means that the IV is stored in the encrypted value so we can't get encrypt the search criteria and generate the exact same result. So without significant changes that would probably result is massive performance impacts, this is going to be a futile effort.

Yeah, I'ma dumbass. This isn't going to be possible. Using algorithms like AES and such means that the IV is stored in the encrypted value so we can't get encrypt the search criteria and generate the exact same result. So without significant changes that would probably result is massive performance impacts, this is going to be a futile effort.
jamie (Migrated from git.hazaar.io) closed this issue 2021-04-01 03:37:46 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hazaar/hazaar-dbi#70
No description provided.