store_model icon indicating copy to clipboard operation
store_model copied to clipboard

Encrypt attributes

Open 23tux opened this issue 3 years ago • 3 comments

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 avatar Apr 20 '22 12:04 23tux

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.

DmitryTsepelev avatar Apr 25 '22 20:04 DmitryTsepelev

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 avatar Oct 03 '23 20:10 OliverGilan

@OliverGilan I'm working on it and waiting for feedback from @DmitryTsepelev, see https://github.com/DmitryTsepelev/store_model/issues/60#issuecomment-2143844111

23tux avatar Jun 07 '24 11:06 23tux