Mark a field for AES-256-GCM encryption. Apply as a class decorator, passing the field name(s).
Encrypt('ssn')(User); Encrypt('bankAccount')(User);
Then call applyEncryptionHooks(User) once to wire the hooks.
Mark a field for AES-256-GCM encryption. Apply as a class decorator, passing the field name(s).
Encrypt('ssn')(User); Encrypt('bankAccount')(User);
Then call applyEncryptionHooks(User) once to wire the hooks.