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-2025 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.1.tar.gz (4.4 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.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdfcipher-1.0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for pdfcipher-1.0.1.tar.gz
Algorithm Hash digest
SHA256 12539ae54764d453a3d1f65a8406d442b5101652f09b5dd1e36eb99462b30159
MD5 f5dcd16f601a7a5c09697b47d79e5faf
BLAKE2b-256 a6a489c16b5e57241b10e8b2479e4a37ad54be3ef997a21c9007409d958c4400

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pdfcipher-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for pdfcipher-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cba9418bd5a1cda7b45cd0ae5c245b5d338bccb97e43f6bbb3cf4d8eb2ad2b61
MD5 9267a8a69dd001c362720ebc3a0fdb06
BLAKE2b-256 3e1dcd4aac76da1f407340318cbde7d9e0fe4c9f624af3f8e28bd8312ad11603

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