Guide

How to password protect a PDF on Android without handing it to a website first.

Search for a way to lock a PDF and the first results are free online tools. They work, in the sense that a protected file comes back. They also start by uploading the unprotected original, which is the one thing you were trying to avoid. This guide covers what a PDF password actually does, which locks are weak, and how to encrypt a scanned document on the phone itself.

The short answer

Method What actually protects the file
A free browser-based password tool Encryption is real, but the unprotected PDF is uploaded first; protection of that copy is a retention promise
A permissions-only password (no printing, no copying) Nothing: the file opens without a password and the restrictions are flags any PDF tool can strip
Legacy 40-bit RC4 encryption A lock that is broken outright, whatever the password
AES-256 with an open password, applied on the device The file is unreadable without the password, and no copy ever left the phone
Any of the above, with the password in the same message as the file Protection against nobody who can read the message

That is the two-minute version. The rest of this guide explains the two kinds of PDF password, why the online route defeats the purpose for sensitive files, and the exact steps for locking a scan on an Android phone.

What a PDF password actually does

The PDF format has two passwords, and the difference matters more than any other detail on this page. The open password (the user password) encrypts the contents; without it, a viewer cannot render a single page. The permissions password (the owner password) does not encrypt anything from the reader. It sets flags such as no printing or no copying, and the file opens normally. Those flags are honored by well-behaved viewers and ignored by everything else, and any PDF tool can remove them in one step. A file with only a permissions password is, for practical purposes, unprotected.

The second detail is the cipher. Current PDF encryption is AES-256 (revision 6 of the PDF security standard). Older files and some older tools still use RC4 at 40 or 128 bits; the 40-bit variant can be broken outright, and neither should be used for anything that matters. Metadata such as the title and author can be encrypted or left in the clear, depending on the tool.

The third detail is the one people skip: with modern encryption, the password is the weak point, not the cipher. Nobody attacks AES-256. They guess the password, and a four-digit code falls in seconds while a long passphrase does not. Treat a PDF password the way you would treat an email password.

Why the free online tool defeats the purpose

Browser-based password tools work by uploading your PDF to a server, encrypting it there, and sending the result back. Look at what that means for the kind of document you would bother to protect: a tax return, a contract, a medical record, a scan of an ID. The very first step ships the unprotected version to a company you have no relationship with. Whether they delete it afterwards, how long their logs and backups keep it, and who can reach it in the meantime are all promises you cannot check. Our guide on where scanner apps send your documents covers how to verify this class of claim for any app.

The fix is not a better website. It is doing the encryption where the document already is: on the phone.

How DocuScanr handles it: password protection runs on the device, like everything else in the app. The PDF is written and encrypted on the phone and never touches a server, which you can confirm by exporting a protected file in airplane mode. The app holds network permission only for Google Play Billing and optional crash reporting; the network audit measured zero bytes and zero connection attempts across launch, scanning, and text recognition.

How to password protect a scanned PDF on Android

The steps below are for DocuScanr; the checks at the end apply to any tool.

  1. Scan or open the document and tap the export button at the bottom of the viewer.
  2. Choose PDF or Searchable PDF. A searchable PDF carries the recognized text as an invisible layer; it is encrypted along with the page images.
  3. Turn on Password protect and enter the password twice. It can be 4 to 128 characters; the minimum is a floor, not a recommendation.
  4. Save or Share. Save keeps a copy on the phone; Share hands the encrypted file straight to another app.
  5. Test it. Open the exported file in any PDF viewer. It must ask for the password before showing a page. If it opens without asking, you set a permissions password, not an open password.
DocuScanr export sheet with Password protect switched on and the Password and Confirm password fields filled, above a note that the password is needed to open the exported file. The format list above shows PDF, Searchable PDF, JPEG, and PNG.

How DocuScanr handles it: exports are encrypted with AES-256 (PDF revision 6), the open password and the owner password are set to the same value so there is no permissions-only mode to strip, and the document metadata is encrypted as well. The encryption is done by qpdf, a widely used open-source PDF library bundled inside the app. The password is used once and wiped from memory; it is never stored. Password-protected export is a Pro feature. If the document is flagged for sensitive content, the export sheet also recommends turning the password on.

Images and text: the encrypted ZIP

Not every export is a PDF, and image and text files have no password feature of their own; a JPEG cannot be locked. The way to protect them is an encrypted ZIP, and ZIP encryption has its own trap: the legacy ZipCrypto scheme that many tools still default to is weak and has been for decades. The format also has a property worth knowing about: file names inside an encrypted ZIP are not encrypted. The contents are protected; the list of names is readable by anyone.

How DocuScanr handles it: with password protection on, JPEG, PNG, and text exports are packaged as AES-256 ZIPs, not ZipCrypto (without a password they are plain image and text files). In an all-pages export the images inside are named Page_1.jpg, Page_2.jpg, and so on. A single-page export and the ZIP file itself take the document title, as any export does, so a document named after its contents announces them in the file name; name it neutrally if that matters.

Opening it later

Password protection is part of the PDF standard, so a recipient needs nothing special: every current PDF viewer, including the ones built into phones and browsers, prompts for the password and opens the file. If you keep protected PDFs yourself, DocuScanr can also import them back into the library (and encrypted ZIPs of page images), asking for the password and decrypting on the device. Importing protected files is a Pro feature; importing ordinary PDFs and images is free.

What password tools quietly get wrong

The upload nobody mentions

Covered above, and worth repeating as the first thing to check with any tool: does the file leave the device before it is protected? For a website, the answer is always yes. For an app, airplane mode settles it.

Restrictions dressed up as protection

Some tools offer no printing and no copying as the headline feature and the open password as an afterthought, or not at all. A document that opens without a password is not protected, however many boxes were ticked.

Legacy ciphers

Older PDF tools and libraries still emit RC4 encryption, and most ZIP tools default to ZipCrypto. Both look identical to strong encryption in a file manager. The only way to know is to check what the tool says it uses, or to open the file in a viewer that reports the security method.

The unprotected original left behind

Protecting the export does nothing for the copies you already have: the original in Downloads, the version attached to an earlier email, or a photographed page in a camera roll that syncs to a cloud account. Our redaction guide covers the copies that never got redacted; the same audit applies here. And note that a password is not redaction. Anyone you give the password to sees everything; if only part of the document should be shared, redact it and then protect the result.

The password in the same message

An encrypted attachment with its password in the body of the email protects the file only from people who cannot read the email, which is nobody who matters. Send the password by a different route: a phone call, a message on another service, or in person.

A short checklist before you send

  • The file asks for a password when you open it yourself.
  • The password is long, and not one you use anywhere else.
  • The password travels separately from the file.
  • Anything that should not be seen at all has been redacted, not just locked.
  • The unprotected copies on your own phone are accounted for.

Verify, do not trust: turn on airplane mode, export a password-protected PDF, and open it in another app. It asks for the password, and nothing left the phone. Two minutes, and the claim on this page becomes something you checked.

PDF password questions, answered

The questions people ask once they realize that not every lock is the same lock.

That depends on the encryption and the password. A PDF locked with AES-256 and a long passphrase is not practically breakable; the same file locked with a four-digit PIN falls to guessing in seconds, because an attacker guesses the password rather than the key. Older PDFs protected with 40-bit RC4 can be broken outright regardless of the password. Use current encryption and a password you would trust for an email account.

Only if you are comfortable with the unprotected PDF sitting on a server you do not control first, because that is how browser-based tools work: the file is uploaded, encrypted there, and sent back. Whether it is deleted afterwards is a policy promise you cannot verify. For a document worth protecting, use a tool that encrypts on the device, and confirm it by doing it in airplane mode.

No. Password protection is part of the PDF standard, and every current PDF viewer, including the ones built into phones and browsers, asks for the password and opens the file. Send the password through a different channel than the file, such as a phone call or a separate message.

An open password (the user password) encrypts the file; nobody can read it without the password. A permissions password (the owner password) only sets restrictions such as no printing or no copying, and the file itself opens without a password. Those restrictions are flags that any PDF tool can ignore or strip, so a permissions-only password protects nothing. DocuScanr always sets an open password and uses the same value as the owner password, so there is no permissions-only mode to bypass.

No. The password is used once to encrypt the export and is then wiped from memory. It is not saved in the app, not written into the file, and cannot be recovered; if you forget it, the exported file stays locked. Your library inside DocuScanr is unaffected, so you can always export a fresh copy with a new password.

Lock it on the phone. Nothing to upload.

AES-256 password protection for PDFs, searchable PDFs, and image and text exports, done on the device with Pro.