Computes the /U value for RC4-40 PDF encryption. The /U value is used to verify the user password.
The user password.
The /O value.
The /P value (permissions flags).
The first element of the /ID array.
A promise that resolves to the 32-byte /U value.
const U = await computeURc4_40(userPassword, O, permissions, fileId) Copy
const U = await computeURc4_40(userPassword, O, permissions, fileId)
Computes the /U value for RC4-40 PDF encryption. The /U value is used to verify the user password.