Computes the 40-bit encryption key for RC4-40 PDF encryption.
The user password.
The /O value.
The /P value (permissions flags).
The first element of the /ID array.
A promise that resolves to the 5-byte (40-bit) encryption key.
const key = await computeEncryptionKeyRc4_40(userPw, O, permissions, fileId) Copy
const key = await computeEncryptionKeyRc4_40(userPw, O, permissions, fileId)
Computes the 40-bit encryption key for RC4-40 PDF encryption.