Skip to main content

File encryption using XChaCha20-Poly1305 and Argon2id.

Project description

FileEncrypt

A simple Python package and CLI tool for encrypting files using XChaCha20-Poly1305 and Argon2id. FileEncrypt focus on security, simplicity and reliability. It uses the secure XChaCha20 cipher and Argon2id key derivation function to provide a high level of security.

Installation

Install locally (for development or pip install):

pip install .

Usage

As a CLI tool

After installation, you can use the CLI:

fileencrypt <input_file> <output_file> <password>
  • If <password> is omitted, you will be prompted securely.
  • Warning: Passing the password as a CLI argument may expose it to other users on the system (use with caution).

As a Python module

You can also use the encryption functionality in your own scripts:

from fileencrypt import encrypt_file

encrypt_file("input.txt", "output.enc", "your_password")

Decryption

A similar interface is available for decryption (see fileencrypt.decrypt_file).


Requirements

  • Python 3.7+
  • argon2-cffi
  • pynacl

License

MIT

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

fileencrypt-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

fileencrypt-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file fileencrypt-0.1.0.tar.gz.

File metadata

  • Download URL: fileencrypt-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for fileencrypt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8823b51836f62fb932d8af4bb55b768d8b86f302e27c5515313a6ee8922ee3c2
MD5 bf486f27a5ad70abd4c16b1555824cbe
BLAKE2b-256 ef3b8267761f2726e455689819c17b1a203280b7367372d82f21095eb8b38358

See more details on using hashes here.

File details

Details for the file fileencrypt-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fileencrypt-0.1.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.10.13

File hashes

Hashes for fileencrypt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4291878d8317d32438fb73614f86d86dfc42328db68231c2e96ddb4b7ad385f1
MD5 9e9ca88eb1da5e8d40e1999f3a20dd28
BLAKE2b-256 7eafb7d3a9ed6da8681af2279f3a3464147f40b3976ea090e06fc9f2221ac0d6

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