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.1.tar.gz (3.3 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.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fileencrypt-0.1.1.tar.gz
  • Upload date:
  • Size: 3.3 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.1.tar.gz
Algorithm Hash digest
SHA256 ac67f26df46decace65c606e225ccad9295f91a6ba4a5a375fed4263cc3ba88e
MD5 42615a4f1b161805c387e0998c6ae1b2
BLAKE2b-256 d0429d8e8330155ac01202baf7a4f9f2b15a798673cd8737447676613f9126b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fileencrypt-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 64459e358158fc107633f2671feb6233eecc5f36de6edde185ae9e94f996eaca
MD5 3c91b4bfb1bcbc36248cb4189e9bc31d
BLAKE2b-256 39be35007efa4b310eafb2fbb718858f46b1dc5df5bd6b2f103af3ca5517513c

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