Skip to main content

pdfcipher - A command-line tool for encrypting and decrypting PDF files with password protection

License: GPL v3

The pdfcipher command-line tool enables encrypting and decrypting PDF files with password-based encryption. It allows users to set and remove passwords, ensuring secure access and distribution of PDF documents.

Requirements

  • The qpdf command-line tool.

Installation

To install the pdfcipher executable locally in ~/.local/bin/ using pip, run:

pip install --user pdfcipher

(Omitting the --user flag will install pdfcipher system-wide in /usr/local/bin/.)

Usage

Encrypt

Encrypt PDF files with password protection:

pdfcipher enc file1.pdf file2.pdf file3.pdf

The pdfcipher tool will prompt the user to enter a password, which will then be used to encrypt all the specified PDF files:

Decrypt

Decrypt PDF files by entering the password used for encryption:

pdfcipher dec file1.pdf file2.pdf file3.pdf

If the entered password is correct, the tool will attempt to use it to decrypt all the other files. If any file fails to be decrypted, the tool will prompt you to re-enter the password for convenience.

License

Copyright (c) 2023-2026 James Cherti

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Links

Metadata

Release files for pdfcipher 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdfcipher 1.0.2
File Size Uploaded
pdfcipher-1.0.2.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pdfcipher 1.0.2
File Interpreter ABI Platform
pdfcipher-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / pdfcipher-1.0.2.tar.gz

Download URL pdfcipher-1.0.2.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
694001cdb68a75801bde2f562f369a083c0d3a0a5a222e3643a25d98372585e1
BLAKE2b-256 checksum
How to use checksums
87aed6a28499659c16f9cfe249d93053827730cbd0b579b100b0950b62df0e97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / pdfcipher-1.0.2-py3-none-any.whl

Download URL pdfcipher-1.0.2-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
047b49f3f209aee37015c96df2717212b3e503e83c5b939c21c55f9122fe0c57
BLAKE2b-256 checksum
How to use checksums
e8ce0f1292022d49df5334abe1be18cff6af81788fce7e3061f6a2e046f14a63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page