47ng/prisma-field-encryption

Support for Json fields?

baptisteArno opened this issue ยท 1 comments

I see that it only supports String fields. Any reason why it doesn't support Json fields for example? I'm a total newbie when it comes to encryption ๐Ÿ˜…

It probably could work for JSON fields, since we can store a string in a JSON field.

It would require serialising the data before encryption and parsing after decryption, which is where funny stuff can happen.