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-fis 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.
Release files for cipher-wire 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cipher_wire-0.0.4.tar.gz | 8.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cipher_wire-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.5 kB
Release files / cipher_wire-0.0.4.tar.gz
| Download URL | cipher_wire-0.0.4.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8032ebe468018227500348b40966983754231ae85ae26e33dcee2082cfcafcf
|
|
BLAKE2b-256 checksum How to use checksums |
5e85df229ac0352210451632910c7c1e3da6813004970aed61520eccd3e50eb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / cipher_wire-0.0.4-py3-none-any.whl
| Download URL | cipher_wire-0.0.4-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d199e30a2d275b5a6196b69554f85eefe5e8ae868c93f7ebebb0213ecb91599
|
|
BLAKE2b-256 checksum How to use checksums |
a5c464804086e9bbadb026eb3d0f8403917e45c5b5e85b8aa8312056f2be3101
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|