Secure Encryption and Deletion Application
Project description
Secure Encryption and Deletion Application
This Python application allows you to securely encrypt files and directories using the Fernet library and permanently delete them with the shred command. It is useful for protecting sensitive data and ensuring it cannot be recovered.
Main Features
- Secure Encryption: Uses the Fernet library to encrypt files and directories with a user-provided key.
- Permanent Deletion: Securely removes files and directories using the shred command.
- Recursive Processing: Supports encrypting and deleting files within directories recursively.
- User Confirmation Options: Can be configured to require user confirmation before encrypting or deleting files.
Requirements
- Python 3.x
- Required libraries:
cryptography,hashlib
Usage
Running cryptshield
Basic syntax:
cryptshield [COMMAND] [OPTION1] [OPTION2]
Examples:
# Encrypt a file
cryptshield encrypt /path/to/file secret_key
# Decrypt a file
cryptshield decrypt /path/to/file.encrypted secret_key
# Encrypt a text
cryptshield encrypt_text "Sample text" secret_key
"gAAAAABnsO0xV07ndDmt-fO..."
# Decrypt a text
cryptshield decrypt_text "gAAAAABnsO0xV07ndDmt-fO..." secret_key
"Sample text"
# Secure file deletion
cryptshield delete /path/to/file
Release Information
Version 1.0.0
You can download the latest release of the Cryptshield package as a .deb file from the following link:
Download Cryptshield 1.0.0 (.deb)
Installation
To install the package on your system, run the following command:
wget https://github.com/wilmerm/cryptshield/releases/download/v1.0.0/cryptshield_1.0.0_all.deb
sudo dpkg -i cryptshield_1.0.0_all.deb
After installation, you can run the cryptshield command by simply typing:
cryptshield encrypt [FILE] [KEY]
If you encounter any issues with dependencies, you can resolve them using:
sudo apt-get install -f
Setup
Ensure the required libraries are installed using the following command:
pip install -r requirements.txt
If you plan to use secure deletion, make sure you have administrator (sudo) privileges.
Installation and .deb Package Creation
Follow these steps to create and install the .deb package for Cryptshield:
1. Build the Package
Run:
dpkg-buildpackage -us -uc
2. Install and Test
sudo dpkg -i ../cryptshield_<version>_all.deb
cryptshield
If there are dependency issues, fix them with:
sudo apt-get install -f
Building and Publishing the Library
To compile and upload the library to PyPI, follow these steps:
-
Ensure you have the necessary dependencies:
pip install build twine
-
Build the package:
python -m build
-
(Optional) Verify the package:
twine check dist/*
-
Upload the package to PyPI:
python -m twine upload dist/*
Contributing
If you'd like to contribute to this project or report an issue, feel free to open an issue or submit a pull request on GitHub.
License
This application is distributed under the MIT License.
Contribution 💗
If you find value in this project and would like to show your support, please consider making a donation via PayPal:
Your generosity helps us to continue improving and maintaining this project. We appreciate every contribution, however small. Thanks for being part of our community!
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cryptshield-1.0.0.tar.gz.
File metadata
- Download URL: cryptshield-1.0.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d96a427d8dab270caf28d7637305e1998e6b55cd21ec030760022866eddaa13e
|
|
| MD5 |
c596b00bf81cba2eeda0f99b41bc8a5f
|
|
| BLAKE2b-256 |
9516eeaa5644ea2a0f7daa4ef0518cacb49be15c51835772ed7e9e743767e161
|
File details
Details for the file cryptshield-1.0.0-py3-none-any.whl.
File metadata
- Download URL: cryptshield-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ff029427c6070e0a165edbc69c2f746d8272ceb4c3a1f5440653e4525f7730a
|
|
| MD5 |
0f773da1ed27eef9962913955962c614
|
|
| BLAKE2b-256 |
62bb9b2ca03fc0160f77c0ce6ac7894ea387c9178b1b4d71f3ceba15ec3865bf
|