Urgent.News

What's breaking now, across hundreds of outlets.

Tech

PDF passwords explained: user vs owner passwords and what permission flags really do

PDF "password protection" is two different features that people mix up constantly. Two passwords, two jobs User (open) password : required to open the file. The content is encrypted with a key derived from it, so without the password the bytes are unreadable. Owner (permissions) password : controls permission flags such as printing, copying text, editing, filling forms and assembling pages. The…

PDF files can be protected with two types of passwords, often confused for one another. The first is the User password, necessary to access the file's content. Once the password is entered, the document's data is encrypted using a key generated from it. Without this password, the file's bytes remain unreadable. The second password is the Owner password, which regulates permission flags like printing, copying, editing, and filling forms.

Entering this password allows the file to open without restrictions. Both passwords can be set individually or together.

Permission flags are not strict locks but rather guidelines for compliant software. Tools such as Acrobat, Chrome, Preview, and most viewers follow these guidelines. However, once a file is open, the content is decrypted, allowing non-compliant tools to disregard these flags. In this case, the "no copy / no print" settings are more of a deterrent for honest users than a strong security measure. If the content must remain confidential, a robust User password is recommended.

When choosing encryption, it's crucial to pick the right cipher. Avoid older, weaker ciphers like RC4 40/128-bit and stick to AES-128 or AES-256. AES-128, despite being technically weaker, is still acceptable for older readers. For a more secure option, go for AES-256, which is the default choice today. Tools like qpdf can encrypt PDFs with desired User and Owner passwords, print/copy/edit/form/page restrictions, and either AES-256 or AES-128, supporting up to 20 files at once.

For added security, send the password through a separate channel than the file, such as SMS or a phone call, rather than the same email. A strong User password, four random words long, offers better protection than complex combinations like "P@ss1". Always keep an unencrypted original copy of the file. Remember, a forgotten AES-256 open password is effectively unrecoverable.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Why Processing Large PDFs in the Browser Is Harder Than It Looks

A small PDF is usually easy to handle in a browser. Select a file, load it into a JavaScript library, perform an operation and download the result.

  • Large PDFs consume browser memory, making interfaces unresponsive.
  • PDF file size doesn't fully indicate processing complexity.
  • OCR demands additional image processing steps, making it resource-intensive.

Go GC Write Barriers Under Concurrent Mutation: Tri-Color Invariants, Barrier Costs, and the Allocation Pressure Trap

The Problem Isn't GC Pauses—It's What Triggers Them Most Go engineers know the GC runs concurrently and that STW pauses are short.

  • Go's concurrent GC uses write barriers to maintain invariants during marking.
  • Hybrid write barrier combines Dijkstra insertion and Yuasa deletion barriers.
  • Write barrier buffer and drain cost increases with sustained high mutation rates.

More from Saturday, 28 November 2026 →