-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
We should provide an easy way how to encrypt property values on "save" and decrypt then on "load". At the moment, users have to implement operation hooks as a workaround.
Optionally, we can provide support for one-way encryption too, think of User.password.
loopbackio/loopback-datasource-juggler#441
The reason is: I need to encrypt/decrypt data in database.
So basically before save I can encrypt data with the key.
But I can't decrypt data after find.
I've tried with getter/setter but it doesn't work.
I need to manipulate data after it is validated ?
For example, after all my fields are validated I'd like to encrypt some of them and persist into datastore.