georgemarshall/django-cryptography

Encryption using client-specific keys

alexp0205 opened this issue · 0 comments

Hi. I am looking for a way to encrypt a particular field in a model using different keys. The model has data owned by multiple clients and each client has their own keys. Has the library been used for a similar use case before? Do you have any thoughts on how this could be done?

In a clone branch, I was thinking of changing _encryption_key in FernetBytes.__init__ method to get the key from a different method instead of from settings. Will this work?