Skip to main content

A file encryption and decryption tool

Project description

FileSecure Tool

FileSecure is a command-line utility for encrypting and decrypting files using AES-256-CBC encryption. This tool allows you to securely protect your files with a password, ensuring that sensitive data is not exposed.

Features

  • Encrypt Files: Secure your files with AES-256-CBC encryption.
  • Decrypt Files: Restore encrypted files back to their original state.
  • Easy to Use: Simple command-line interface with straightforward commands.
  • Password-Based Encryption: Utilize a password to derive a strong encryption key.

Installation

To use the FileSecure tool, you need to have Python and pip installed on your system.

pip install filesecure

Usage

Encrypting a File

To encrypt a file, use the following command:

filesecure encrypt --password "your_password" yourfile.txt --output-file yourfile.txt.secured

Parameters

  • --password "your_password": The password used to encrypt the file. Make sure to use a strong password.
  • yourfile.txt: The name of the file you want to encrypt.
  • --output-file "yourfile.txt.secured" (optional): The name of the file where the encrypted content will be saved. If not provided, the original file will be overwritten.

Important Notes

  • If --output-file is not provided, the original file will be overwritten with the encrypted content.
  • If the file is already encrypted (i.e., it starts with FILE_SECURE), a message will indicate that the file is already encrypted.

Decrypting a File

To decrypt a file, use the following command:

filesecure decrypt --password "your_password" yourfile.txt.secured --output-file yourfile.txt

Parameters

  • --password "your_password": The password used to decrypt the file. It must match the password used during encryption.
  • yourfile.txt.secured: The name of the file you want to decrypt.
  • --output-file "yourfile.txt" (optional): The name of the file where the decrypted content will be saved. If not provided, the original file will be overwritten.

Important Notes

  • If --output-file is not provided, the original file will be overwritten with the decrypted content.
  • If the file is not encrypted (i.e., it does not start with FILE_SECURE), an error message will indicate that the file is not encrypted or is in an invalid format.

Contributing

Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

filesecure-0.7.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

filesecure-0.7.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file filesecure-0.7.0.tar.gz.

File metadata

  • Download URL: filesecure-0.7.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.10

File hashes

Hashes for filesecure-0.7.0.tar.gz
Algorithm Hash digest
SHA256 6384d99704b107b58449e8fd2ca5d6cec00be114e87163470e0b258538ce3509
MD5 65b3d83170d4a1b01f620c3179607db2
BLAKE2b-256 1ceddb8933f7ebcf13b3d222513e1a3983e462cf123aa278c91eb216e35c4bfc

See more details on using hashes here.

File details

Details for the file filesecure-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: filesecure-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.10

File hashes

Hashes for filesecure-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8fefb86a6f1c421c49a3a706ea263027d687f4949b7e875d4d598d61168d5d6d
MD5 290c386191995e11d14f8022a63a3728
BLAKE2b-256 22d4a11475fd2c7985b07deeca5dd73ff4344936be62cd89587765b24d4ef406

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