How Password-protect PDF works
PDF Password Protection encrypts your PDF with a password using AES encryption via pdf-lib-plus-encrypt, running entirely in your browser. You set a user password that must be entered to open the file, and optionally an owner password that controls permissions such as printing, copying or editing. The encryption is performed locally; the file never passes through any server.
The AES encryption applied here is the same algorithm used across many standard PDF viewers and is supported by Adobe Acrobat, macOS Preview, and most PDF readers. When a recipient opens the protected PDF, their viewer prompts for the password before displaying the content. Note that password protection is only as strong as the password chosen: a short or common password can be brute-forced by a determined attacker with the right tools. Choose a password that is long and not a dictionary word for meaningful protection.