Is there a feature in ServiceStack that allows to encrypt/decrypt certain field with an attribute on a property for example?
public class Account
{
[Encrypt]
public string? Password { get; set; }
}
I have a service with a mysql database and I will have to implement this on certain field and I’d like to use the new Locode frontend to allow employees to edit those encrypted field so I was wondering if that’s a scenario (encryption) that is supported somewhere I can’t seem to find it if that’s the case.
typically you are going to use wire encryption on the update (so a post or put via https) and then the service implementation will encrypt it for at rest storage.
on another note, if you are implementing bespoke services related to passwords… you’re probably doing it wrong.