prorm API Reference
    Preparing search index...

    Function Encrypt

    • 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.

      Parameters

      • field: string

      Returns (target: Function) => void