It would be great to sanitize inputs before hashing them:
For example:
We have the following model:
model User {
id String @id
name String @unique /// @encrypted
nameHash String? @unique /// @encryption:hash(name)
}
The user provides a name: MartijN.
Now I would like to be able to find this user back with a lowercase string martijn, but still decrypt the name field back to MartijN.
It would be great to sanitize inputs before hashing them:
For example: We have the following model:
The user provides a name: MartijN. Now I would like to be able to find this user back with a lowercase string martijn, but still decrypt the name field back to MartijN.
Discussed in 102.