Skip to main content

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:

  1. Ensure you have the necessary dependencies:

    pip install build twine
    
  2. Build the package:

    python -m build
    
  3. (Optional) Verify the package:

    twine check dist/*
    
  4. 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:

Donate on 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

cryptshield-1.0.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

cryptshield-1.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for cryptshield-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d96a427d8dab270caf28d7637305e1998e6b55cd21ec030760022866eddaa13e
MD5 c596b00bf81cba2eeda0f99b41bc8a5f
BLAKE2b-256 9516eeaa5644ea2a0f7daa4ef0518cacb49be15c51835772ed7e9e743767e161

See more details on using hashes here.

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

Hashes for cryptshield-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ff029427c6070e0a165edbc69c2f746d8272ceb4c3a1f5440653e4525f7730a
MD5 0f773da1ed27eef9962913955962c614
BLAKE2b-256 62bb9b2ca03fc0160f77c0ce6ac7894ea387c9178b1b4d71f3ceba15ec3865bf

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