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

Encrypt attributes #115

Open
23tux opened this issue Apr 20, 2022 · 3 comments
Open

Encrypt attributes #115

23tux opened this issue Apr 20, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@23tux
Copy link

23tux commented Apr 20, 2022

Rails provides with Rails::Secrets.encrypt("foo") a way to securely encrypt information. Rails 7 provides a nice interface to it via encrypts :my_attribute.

Is there some way, this could be used with StoreModel as well? Maybe also before upgrading to Rails 7?

@23tux 23tux closed this as completed Apr 20, 2022
@23tux 23tux reopened this Apr 20, 2022
@DmitryTsepelev DmitryTsepelev added the enhancement New feature or request label Apr 25, 2022
@DmitryTsepelev
Copy link
Owner

Hi @23tux! I guess we can try to bring encrypts to the gem by including the right module 🙂 Before Rails 7 there was a lockbox which works with store_model out of the box.

@OliverGilan
Copy link

Any update on this? My desire would be to encrypt individual properties of a storemodel object and my understanding is that lockbox only allows you to encrypt db columns. So if I have one json db column called Configuration and I'm using StoreModel to represent that configuration then it would be awesome to encrypt just specific properties of that configuration

@23tux
Copy link
Author

23tux commented Jun 7, 2024

@OliverGilan I'm working on it and waiting for feedback from @DmitryTsepelev, see #60 (comment)

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

No branches or pull requests

3 participants