How to encrypt object data content manager?

I know that in the content manager you can easily encrypt text data if you are storing sensitive information (eg. email address).

I am wondering, how do you do this if you are storing an object in a column? The option to encrypt no longer shows up… does it encrypt automatically then? Or is it just not possible to encrypt?

Should I save sensitive object data as text in my database then (rather than of type object)? I am saving email addresses, names, and home addresses.

Thanks!

Interesting question. I think the problem lies in the fact that objects are also stored in a binary representation to speed up execution (so the text does not have to be parsed every time), which makes encrypting difficult. So if you want that extra security, then yes, you can store an object as encrypted text and with JSON.parse/JSON.stringify convert back and forth. The price you will pay is execution speed. So as always, a tradeoff.

Alright, guess that’s what I will have to do. Thanks for the help!