API Reference
    Preparing search index...

    Options for DataMasking.encrypt.

    interface EncryptOptions {
        context?: Record<string, string>;
        fields?: string[];
        providerOptions?: Record<string, unknown>;
    }
    Index
    context?: Record<string, string>

    Encryption context (additional authenticated data).

    fields?: string[]

    Dot-notation path expressions for fields to encrypt (supports .* and [*] wildcards). If omitted, entire payload is encrypted.

    providerOptions?: Record<string, unknown>

    Provider-specific options (escape hatch).