Skip to main content

A lightweight AES encryption and decryption utility that can be used both as a command-line tool and as a Python package.

Project description

fcryptx

A lightweight AES encryption and decryption utility that works both as a command-line tool and a Python library.

It supports AES-128, AES-192, and AES-256 encryption for secure file protection.


Requirements

  • Python 3.8+

Installation

pip install fcryptx

Command Line Usage

fcryptx [--e | --d] --algorithm=AES-<128|192|256> --key=<secret_key> --file=<path> [--out=<path>]

Options

Option Description
--e Encrypt file
--d Decrypt file
--algorithm AES algorithm (AES-128, AES-192, AES-256)
--key Secret key for encryption/decryption
--file Input file path
--out Output directory (optional)
-h, --help Show help message

Examples

Encrypt a file

fcryptx --e --algorithm=AES-256 --key=mysecretkey --file=data.txt

Decrypt a file

fcryptx --d --algorithm=AES-256 --key=mysecretkey --file=data.enc

Encrypt with custom output directory

fcryptx --e --algorithm=AES-128 --key=mysecretkey --file=data.txt --out=/home/user/

Decrypt with custom output directory

fcryptx --d --algorithm=AES-128 --key=mysecretkey --file=data.enc --out=/home/user/

Python Usage

You can also use fcryptx as a Python library.

import fcryptx

cipher = fcryptx.AES("mysecretkey", 256)
cipher.encrypt_file("data.txt")

Decrypt:

cipher.decrypt_file("data.enc")

Dependencies

  • cryptography (>=46.0.5)

This will be installed automatically.


Build Debian Package

python setup.py --command-packages=stdeb.command bdist_deb

License

MIT License

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

fcryptx-0.1.3.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

fcryptx-0.1.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file fcryptx-0.1.3.tar.gz.

File metadata

  • Download URL: fcryptx-0.1.3.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for fcryptx-0.1.3.tar.gz
Algorithm Hash digest
SHA256 812f0b6ad9d5d4327cbf35c67fd7e9dca39b8f197d6198820f636df9cabd7a48
MD5 0e9827b352ab1b1c144cd79fee80824a
BLAKE2b-256 cf811d76ae4b9d78c1b536a6a81945b9f6c8dac63cb422ee67a851b14e9bfbdd

See more details on using hashes here.

File details

Details for the file fcryptx-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: fcryptx-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for fcryptx-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d3080df00c7ba7f5e86a0b6aa511327d7644a34663b7a2fb0d620b69b3fba89d
MD5 55743b0f541c1370d2e011deeac3da38
BLAKE2b-256 3efe638e7f4b47b876ce2d886190b4227bca577959a12e0202320dc0b500c2ba

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