Computes the /U value for RC4-128 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.
Whether to encrypt metadata.
Optional
The encryption revision number.
A promise that resolves to the 32-byte /U value.
const U = await computeUValueRc4_128(userPassword, O, permissions, fileId, true) Copy
const U = await computeUValueRc4_128(userPassword, O, permissions, fileId, true)
Computes the /U value for RC4-128 PDF encryption. The /U value is used to verify the user password.