Generates the /U and /UE values for AES-256 PDF encryption. These values are used to validate the user password and decrypt the file key.
The user password.
The 32-byte file encryption key.
A promise that resolves to an object containing the 48-byte U and 32-byte UE values.
const { U, UE } = await generateUandUe(password, fileKey) Copy
const { U, UE } = await generateUandUe(password, fileKey)
Generates the /U and /UE values for AES-256 PDF encryption. These values are used to validate the user password and decrypt the file key.