Skip to main content

A package for secure file encryption and decryption based on modern ciphers using heavy-compute-load chaining of hashing and KDF to generate strong encryption password based on users provided password to ensure secure encryption of files

Project description

Breaking Changes: release 0.7.0 is a BREAKING release, before updating to this release DECRYPT your already encrypted data with the EXACT version used for encrypting. Then update and encrypt again

Breaking Changes The breaking change 0.7.0 was introduced because the final implementation of keystore required some bigger changes to the encryption/decryption logic which finally lead to the breaking changes in behaviour

Version 0.7.0: Feature Complete Status

With the release of version 0.7.0rc1, openssl_encrypt is now really considered feature complete. No new features will be added to the codebase, which should significantly reduce the likelihood of breaking changes. Moving forward, our development efforts will focus exclusively on bug fixes, security updates, deployment enhancements, and documentation improvements. The latest added feature was necessary as handling PQC keys is cumbersome. Therefore a keystore to have the PQC keys saved to is important as an alternative to store they keys (encrypted) in metadata

Secure File Encryption Tool

A powerful tool for securely encrypting, decrypting, and shredding files with military-grade cryptography and multi-layer password hashing.

History

The project is historically named openssl-encrypt because it once was a python script wrapper around openssl. But that did not work anymore with recent python versions. Therefore I decided to do a complete rewrite in pure python also using modern cipher and hashes. So the projectname is a "homage" to the root of all :-)

Important note: although whirlpool is supported by this tool, I do not recommend using this hashing algorithm. That is because building whirlpool via pip fails on recent Python versions (>= Python 3.12). If you want to use it you should have a look at pyenv which allows multiple Python versions to exist in peaceful co-existence. whirlpool will remain in the code also in future versions of this application \

Issues

you can create issues by sending mail to the linked address

Features

  • Strong Encryption: Uses Fernet symmetric encryption (AES-128-CBC) as default with secure key derivation. Also supports AES-GCM, AES-SIV, CAMLELIA, POLY1305-CHACHA20, AES-GCM-SIV, AES-OCB3 ans XCHACHA20_POLY1305 as ecnryption algorithm
  • Multi-hash Password Protection: Optional layered hashing with SHA-256, SHA-512, SHA3-256, SHA3-512, Whirlpool, BLAKE2b and SHAKE-256 they all can be chained with different rounds to create key-stretching
  • Multi-KDF Password Protection: Optional layered KFD with PBKDF2, Scrypt, Argon2 and Ballon they all can be chained with different rounds to create key-stretching and very strong brute-force prevention
  • Postquantum Resistance: Using a hybrid approach to implement postquantum resistance. Still using symetrical encryption but with a key derived with Kyber KEM for postquantum resistance
  • Keystore for PQC keys: a local keystore can be used to maintain and manage the PQC keys used for encrypting your files
  • Password Management: Password confirmation to prevent typos, random password generation, and standalone password generator
  • File Integrity Verification: Built-in hash verification to detect corrupted or tampered files
  • Secure File Shredding: Military-grade secure deletion with multi-pass overwriting
  • Directory Support: Recursive processing of directories
  • Memory-Secure Processing: Protection against memory-based attacks and data leakage
  • Glob Pattern Support: Batch operations using wildcard patterns
  • Safe Overwriting: Secure in-place file replacement with atomic operations
  • Progress Visualization: Real-time progress bars for lengthy operations
  • Graphical User Interface: User-friendly GUI for all operations (beta)
  • Built-in and custom Templates: built in templates like --quick --standard and --paranoid can be used. You can also define your own customized templates in ./templates

Files Included

all testfile files are ecrypted with password 1234 for your testing

License

MIT License

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

openssl_encrypt-0.7.0rc2.tar.gz (187.2 kB view details)

Uploaded Source

Built Distribution

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

openssl_encrypt-0.7.0rc2-py3-none-any.whl (212.8 kB view details)

Uploaded Python 3

File details

Details for the file openssl_encrypt-0.7.0rc2.tar.gz.

File metadata

  • Download URL: openssl_encrypt-0.7.0rc2.tar.gz
  • Upload date:
  • Size: 187.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for openssl_encrypt-0.7.0rc2.tar.gz
Algorithm Hash digest
SHA256 e76d74191ffe63df2620ec7a25928553314cf833b3fd986e0ee0ba475a6f6034
MD5 96d6d5365e9dc164a17d3eb0763abebd
BLAKE2b-256 b2216f9ec32850006ebbf011c0bb200d68b72ce6c2b40f3b9b410fd51105b5cb

See more details on using hashes here.

File details

Details for the file openssl_encrypt-0.7.0rc2-py3-none-any.whl.

File metadata

File hashes

Hashes for openssl_encrypt-0.7.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 79828450b75410ef96f8337f0b891d89c9ac3cee39384467dac1cce37b97770d
MD5 188cc6d0e9e0c12d7e2b418d92536b7e
BLAKE2b-256 863e8590a95229674940def042a08a71aa6785042b66539b66933f99835ad9fe

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