Open 23tux opened 2 years ago
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.
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
@OliverGilan I'm working on it and waiting for feedback from @DmitryTsepelev, see https://github.com/DmitryTsepelev/store_model/issues/60#issuecomment-2143844111
Rails provides with
Rails::Secrets.encrypt("foo")
a way to securely encrypt information. Rails 7 provides a nice interface to it viaencrypts :my_attribute
.Is there some way, this could be used with StoreModel as well? Maybe also before upgrading to Rails 7?