API Reference
    Preparing search index...

    Interface for pluggable encryption providers. Implement this to use a custom encryption backend.

    interface EncryptionProvider {
        decrypt(data: string, context?: Record<string, string>): Promise<string>;
        encrypt(data: string, context?: Record<string, string>): Promise<string>;
    }

    Implemented by

    Index
    • Parameters

      • data: string
      • Optionalcontext: Record<string, string>

      Returns Promise<string>

    • Parameters

      • data: string
      • Optionalcontext: Record<string, string>

      Returns Promise<string>