pdf-lite - v1.0.1
    Preparing search index...
    • Computes the 40-bit encryption key for RC4-40 PDF encryption.

      Parameters

      • userPw: ByteArray

        The user password.

      • oValue: ByteArray

        The /O value.

      • permissions: number

        The /P value (permissions flags).

      • fileId: ByteArray

        The first element of the /ID array.

      Returns Promise<ByteArray>

      A promise that resolves to the 5-byte (40-bit) encryption key.

      const key = await computeEncryptionKeyRc4_40(userPw, O, permissions, fileId)