Protect PDF
Password-protect and encrypt PDF documents online conforming to ISO 32000-1 Standard Security Handler specifications (40/128-bit stream ciphers). Enforce access gating and restrict printing. 100% client-side.
How to use Protect PDF
Protect confidential documents, financial audits, medical records, and legal agreements with standard password protection directly in your web browser. TechIdea's Protect PDF tool implements the ISO 32000-1 Standard Security Handler (Algorithm 3.2–3.4), generating cryptographic file keys, `/O` (owner) and `/U` (user) verification hashes, and permissions flags (`/P`). Individual indirect stream objects are encrypted using standard stream ciphers, ensuring that unauthorized users cannot open, read, print, or copy text without the valid password. Security Advisory: Implements standard 40/128-bit stream encryption for viewer access gating and permission enforcement. Modern enterprise AES-256 PDF encryption (Revision 6) is currently deferred.
- Select or drag and drop the PDF document you wish to protect into the upload zone.
- Enter a strong User Password (required for recipients to open and view the document).
- Confirm your User Password to prevent lockouts caused by typographical errors.
- Optionally enter an Owner Password to maintain administrative permission override rights.
- Configure Document Permissions: toggle 'Allow Printing' and 'Allow Copying Text & Graphics'.
- Click 'Protect & Encrypt PDF' and download your secure, encrypted document.
ISO 32000-1 Algorithm 3.2–3.4 Standard Security Handler & Stream Ciphers
The protection engine implements the ISO 32000-1 Standard Security Handler specification without external native dependencies. Algorithm 3.3 derives the `/O` dictionary entry by hashing owner password bytes with standard 32-byte security padding (`0x28, 0xBF...`) and encrypting the user password. Algorithm 3.2 computes the master File Encryption Key by concatenating padded user password bytes, `/O`, integer permissions flags (`/P`), and a 16-byte random document `/ID`. Algorithm 3.4 computes `/U` verification bytes. Finally, per-object keys are derived using MD5 of the file key combined with each indirect object's number and generation, encrypting all stream payloads (`/Length`, contents) with RC4 stream ciphers.
- ISO 32000-1 Standards Compliant: Fully verified against Adobe Acrobat, Chrome, and PDF.js.
- Standard Security Scope: Implements 40/128-bit stream ciphers for access control; enterprise AES-256 is deferred.
- Granular Permission Restrictions: Restrict printing and text/graphics copying via /P flags.
- Zero Network Transmission: Pure TypeScript MD5 and stream cipher cryptographic implementations.
- Dual Password Support: Supports distinct User (open) and Owner (administrative) passwords.
All PDF operations are processed entirely inside your local web browser. Your files, documents, and data are never sent to external servers or cloud services.
How secure is the encryption implemented by this tool?
We implement the official ISO 32000-1 Standard Security Handler (Revision 2/3). It computes 128-bit/40-bit key schedules derived from your password, document ID, and permissions flags, and encrypts stream objects using RFC 1321 MD5 and stream ciphers. It is fully recognized and enforced by Adobe Acrobat, Apple Preview, Google Chrome, Mozilla Firefox, and all standard PDF readers for access control and printing restrictions. While effective for personal, business, and workflow permission gating, it is not modern military-grade AES-256 encryption, which is deferred.
What is the difference between a User Password and an Owner Password?
The User Password (also called an Open Password) is required by anyone who opens and views the document. The Owner Password (permissions password) allows the creator to bypass permissions restrictions (such as printing or copying limits) and change or remove security settings.
Are my document and password uploaded to any server?
No! All key derivations, hash computations, and stream cipher encryptions execute 100% inside your browser using pure TypeScript algorithms. Neither your unencrypted file nor your password ever leaves your machine.
What happens if I forget the password?
Because our encryption conforms to genuine cryptographic standards, there is no backdoor. If you forget your password, the document cannot be recovered. Be sure to keep a secure backup of your password or store an unencrypted copy in a safe offline location.