Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encryption at rest? #68

Open
matthiasdebernardini opened this issue Dec 21, 2023 · 1 comment
Open

Encryption at rest? #68

matthiasdebernardini opened this issue Dec 21, 2023 · 1 comment

Comments

@matthiasdebernardini
Copy link

I would like to use this crate to store local data which must be confidential.

Are there plans to add encryption?

@vincent-herlemont
Copy link
Owner

@matthiasdebernardini Yes, I had thought of adding the possibility of including encryption in native_model and allowing users the choice to do their personal encryption using the custom encode/decode. But for that, I need to add the ability to pass parameters to the encode/decode function, so that you can retrieve the key, passphrase, IV, etc.

Like this, you would have the possibility to encrypt your models as you wish, or even perform other operations of your choice.

However, this only offers encryption per model, which provides flexibility but can also make it repetitive, so I'm not sure yet. It requires some design work, so if you have any ideas, don't hesitate to share! :)

NOTE: I would like to avoid having the database offer encryption functions for reasons of responsibility. The database isn't ready to be audited for security, so I prefer that the implementation be on the user's side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants