Use PDF passwords as one part of document security
Distinguish file-open encryption, editing restrictions and redaction; protect and test an authorized copy.
A file-open password can help protect a document while it is stored or sent, but it does not control every action after an authorized reader opens it. Decide what you are protecting, minimize the information you share, and test the exact protected copy.
Separate four different security jobs
File encryption, editing restrictions, redaction and digital signatures solve different problems. Encryption protects access to the file’s contents until the required secret is supplied. Editing or printing restrictions ask compatible software to limit particular actions. Redaction removes information from the shared document. A digital signature helps a recipient evaluate a signed document’s integrity and signing identity within its trust workflow.
Do not use one as evidence of another. A PDF that refuses casual editing may still reveal its contents to someone who can view it. A black rectangle may cover text without removing the underlying words. A typed name or watermark is not automatically a verified digital signature. If a recipient has specific security or signature requirements, use their required process rather than assuming any protected PDF is sufficient.
Choose what actually needs to be shared
Before setting a password, remove unnecessary information from a separate delivery copy using an appropriate workflow. For a fictional volunteer roster, the recipient might need names and shift assignments but not private notes or personal addresses. Sharing less information can reduce exposure even when the password is later disclosed. Keep the full source under the access controls appropriate to your own work.
Use a proper redaction tool when sensitive information must be removed, then inspect the exported result. AllDoc’s manual annotation and redaction editing controls have been retired. The redaction verification guide explains why simply covering text is insufficient. Adding a password to an incompletely redacted file does not repair the redaction; it only changes who can open that flawed copy.
Understand AllDoc password locking
Lock a document creates a file-open password for supported documents. For PDF, the current implementation explicitly requests AES-256 encryption rather than relying on a library default. The pypdf encryption documentation distinguishes AES choices from older RC4 behavior. The algorithm choice matters, but it does not make a weak, reused or exposed password safe.
AllDoc accepts a new password of 8–128 characters, with an additional maximum of 127 UTF-8 bytes for PDF passwords. Characters outside basic ASCII can use more than one byte, so a shorter visible password may hit the byte limit. Supported uploads are limited to 15 MiB; the PDF processing route also has a 300-page limit and independent output checks. AllDoc cannot recover a forgotten new password.
Use a unique secret and a dependable recovery method
Choose a unique password that is not a person’s name, the document title, a phone number or a predictable date. A password manager can generate and retain strong secrets; CISA’s password guidance recommends strong passwords and password managers. For a shared document, consider the recipient’s ability to enter the secret accurately without weakening it into an obvious guess.
Store the secret in your approved password record before relying on the protected copy. Keep a permitted recovery source in a protected location if your workflow requires one. Do not put the password into the filename, a public support message or the same unrestricted folder as the file. A password written directly beside the protected document defeats much of the benefit if both are exposed together.
A worked handoff for a fictional report
Suppose you need to send a reviewed project report to a known coordinator. First confirm the coordinator’s address through an established channel. Create the delivery PDF, remove information they do not need, and review that copy. Then apply a unique file-open password and save the result with a descriptive name that contains no secret. Open the saved result in a fresh reader session and confirm that it requests the password.
Send the file through the agreed delivery route and communicate the secret through a separately verified channel when practical. Sending both in one email may expose both if that message is forwarded or accessed by the wrong person. This example illustrates a workflow, not a guarantee against every threat. The recipient still needs to protect their account, device and saved decrypted copies.
Test the protected file rather than the preview
- Close any already-open copy so a reader is not simply showing previously decrypted content.
- Open the actual saved protected file and confirm the expected password prompt.
- Enter the intended password and check the page count and important content.
- Confirm that the recipient’s software supports the resulting encryption before an urgent deadline.
- Record which protected revision was delivered, without recording the secret in a public log.
- Retain only the copies that your storage and privacy requirements permit.
A failed open can be caused by a mistyped secret, a different file revision or unsupported reader behavior. Do not repeatedly overwrite the original while troubleshooting. Keep the known source and the protected candidate separate so you can tell which file is being tested.
Unlock only an authorized document
Unlock a document requires the correct file-open password. It does not guess passwords, recover forgotten secrets or bypass DRM. For Office files, worksheet protection and editing restrictions are different from file encryption. A workbook that opens normally but blocks changes to a sheet is not the same problem as a file that cannot be opened without a password.
An unlocked result is a new unencrypted copy. Treat its storage and delivery accordingly. Remove that temporary copy when it is no longer needed under your own retention rules, and remember that deleting one local file does not remove copies already sent to others or stored in backups. If you do not know the password, ask the owner for an authorized copy instead of trying unrelated conversion tools.
Know when another workflow is needed
Signed PDFs are rejected by AllDoc rewriting operations because a change can invalidate their signatures. Preserve the signed original and follow the recipient’s instructions. For documents requiring controlled access, expiry or revocation, a suitably configured sharing service may be more appropriate than a standalone password-protected attachment. Once someone has an opened or copied file, changing a later password does not revoke that earlier copy.
Finally, uploading a document to an online tool is itself a processing decision. Review AllDoc’s privacy policy before submitting confidential material, and use an approved offline or organizational workflow when required. Continue with the delivery checklist to verify recipients, revisions and attachments separately from encryption.