pdf-lite - v1.0.1
    Preparing search index...
    • Derives an object-specific encryption key from the master key. Used to encrypt individual PDF objects with unique keys.

      Parameters

      • mkey: ByteArray

        The master encryption key.

      • objNumber: number

        The PDF object number.

      • objGeneration: number

        The PDF object generation number.

      • useAesSalt: boolean = true

        Whether to include the AES salt ('sAlT'). Defaults to true.

      Returns Promise<ByteArray>

      A promise that resolves to the derived object key.

      const objectKey = await deriveObjectKey(masterKey, 5, 0)