Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdfcipher-1.0.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdfcipher-1.0.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file pdfcipher-1.0.2.tar.gz.

File metadata

  • Download URL: pdfcipher-1.0.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for pdfcipher-1.0.2.tar.gz
Algorithm Hash digest
SHA256 694001cdb68a75801bde2f562f369a083c0d3a0a5a222e3643a25d98372585e1
MD5 d1a3260983ee3b4ae5a6a12605181dfb
BLAKE2b-256 87aed6a28499659c16f9cfe249d93053827730cbd0b579b100b0950b62df0e97

See more details on using hashes here.

File details

Details for the file pdfcipher-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pdfcipher-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for pdfcipher-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 047b49f3f209aee37015c96df2717212b3e503e83c5b939c21c55f9122fe0c57
MD5 e16d33a5d056e29ea0d65e5919d3540c
BLAKE2b-256 e8ce0f1292022d49df5334abe1be18cff6af81788fce7e3061f6a2e046f14a63

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page