Is it possible to hash a column? #856
Unanswered
greeksolid
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently using Prisma and I am using this middleware (https://github.com/47ng/prisma-field-encryption) to hash a Postgres column.
The Prisma model looks something like this, and I am able to query the database when users submit the plain text credit value.
In drizzle I tried to do it with the following code unsuccessfully. Or maybe it is possible to achieve the same functionality with pgcrypto somehow?
Any recommendations?
Beta Was this translation helpful? Give feedback.
All reactions