pdf-lite - v1.0.1
    Preparing search index...
    • Decrypts the user password from the /O value using RC4-128. Used to recover the user password when the owner password is known.

      Parameters

      • ownerPw: ByteArray

        The owner password.

      • ownerKey: ByteArray

        The /O value from the encryption dictionary.

      Returns Promise<ByteArray>

      A promise that resolves to the decrypted user password (with padding removed).

      const userPassword = await decryptUserPasswordRc4_128(ownerPw, O)