Skip to main content

No project description provided

Project description

cipher_wire

cipher_wire is a Python module that provides implementations of classical encryption methods like the Caesar cipher and Playfair cipher. The module includes a Command-Line Interface (CLI) for ease of use and also offers a Graphical User Interface (GUI) for users who prefer a visual experience.


Features

  • Classical Encryption Methods
    • Caesar Cipher
    • Playfair Cipher
  • CLI Interface
    • Encrypt and decrypt text directly from the command line.
  • GUI Interface
    • User-friendly interface for performing encryption and decryption tasks visually.

Installation

To install the cipher_wire package, use pip:

pip install cipher_wire

Usage

Command-Line Interface (CLI)

The cipher_wire CLI allows you to encrypt and decrypt text using classical encryption methods. Run the following command for usage information:

cipher_wire -h

CLI Syntax

cipher_wire [-h] [-o OUTPUT] [-f FILE] [-k KEY] [--method {ceaser_cipher,playfiar}] [--gui] [input]

Arguments:

  • input: The text to be encrypted or decrypted (optional if -f is used).
  • -h, --help: Show help message and exit.
  • -o OUTPUT, --output OUTPUT: File to write the output (encrypted/decrypted text).
  • -f FILE, --file FILE: File containing the input text.
  • -k KEY, --key KEY: Key to be used for encryption or decryption.
  • --method {ceaser_cipher,playfiar}: Specify the encryption method.
  • --gui: Launch the GUI interface.

Examples:

Encrypt text using Caesar cipher:

cipher_wire --method ceaser_cipher -k 3 "HELLO WORLD"

Decrypt a file using Playfair cipher:

cipher_wire --method playfiar -k "SECRET" -f encrypted.txt -o decrypted.txt

Launch the GUI interface:

cipher_wire --gui

GUI Interface

The GUI provides a simple and intuitive interface for encryption and decryption. Launch the GUI by running:

cipher_wire --gui

From the GUI, you can:

  • Choose the encryption method.
  • Enter the input text or load a file.
  • Specify the key for encryption or decryption.
  • Save the results to a file.

Encryption Methods

Caesar Cipher

A substitution cipher that shifts the characters in the plaintext by a fixed number (key).

Playfair Cipher

A digraph substitution cipher that uses a 5x5 grid of letters constructed from the key.


Contributing

Contributions are welcome! If you have ideas for additional features or improvements, feel free to open an issue or submit a pull request on the GitHub repository.


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

cipher_wire-0.0.4.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

cipher_wire-0.0.4-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file cipher_wire-0.0.4.tar.gz.

File metadata

  • Download URL: cipher_wire-0.0.4.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for cipher_wire-0.0.4.tar.gz
Algorithm Hash digest
SHA256 c8032ebe468018227500348b40966983754231ae85ae26e33dcee2082cfcafcf
MD5 41b6a45993adf48158482ce7f7034f33
BLAKE2b-256 5e85df229ac0352210451632910c7c1e3da6813004970aed61520eccd3e50eb3

See more details on using hashes here.

File details

Details for the file cipher_wire-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: cipher_wire-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for cipher_wire-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4d199e30a2d275b5a6196b69554f85eefe5e8ae868c93f7ebebb0213ecb91599
MD5 efc76203018522b2a22e389f01b481e3
BLAKE2b-256 a5c464804086e9bbadb026eb3d0f8403917e45c5b5e85b8aa8312056f2be3101

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