Skip to main content

DualKey - Encryption/Decryption Tool

DualKey License

DualKey is a simple command-line tool for encrypting and decrypting sensitive text using a user-defined encryption key and offset.


Features

  • ✅ Encrypts text using a custom encryption key and offset
  • ✅ Decrypts encrypted text back to its original form
  • ✅ Simple command-line interface with input validation
  • ✅ ANSI color formatting for better readability
  • ✅ Cross-platform support (Linux, macOS, Windows)

Installation

Ensure you have Python 3.11+ installed, then install the tool using pip:

pip install dualkey

Using Homebrew

brew install dualkey

Usage

  1. Running the tool After installation, run the following command:
dualkey

You will be prompted to enter an encryption key and offset.

1. Encryption Example

Enter encryption key (4-digit number): 1234
Enter offset value (4 to 6 digit number): 56789
Do you want to (E)ncrypt or (D)ecrypt? e
Enter text to encrypt (max 300 characters): hello world

Output:

Encrypted Text: 71547 67845 76483 76483 80185 -17301 90057 80185 83887 76483 66611

2. Decryption Example

Enter encryption key (4-digit number): 1234
Enter offset value (4 to 6 digit number): 56789
Do you want to (E)ncrypt or (D)ecrypt? d
Enter the encrypted text to decrypt: 71547 67845 76483 76483 80185 -17301 90057 

Output:

Decrypted Text: hello world

3. How It Works

The tool uses a simple formula to encrypt each character of the input:

Encrypted character = (ASCII value * key) - offset

To decrypt, it reverses the formula:

Original ASCII = (Encrypted value + offset) // key

Example Use Cases

  • Higher security when sending or storing sensitive content digitally
  • Encrypting personal notes
  • Quick encryption for sensitive data on the go
  • Security Notice

⚠ This tool does not provide cryptographic security. It is a simple educational utility and should not be used for high-security applications. Always rely on industry-standard encryption methods for sensitive data.

Development

Clone the repository

git clone https://github.com/ilovespectra/dual.key.git
cd dualkey

Install dependencies

pip install -r requirements.txt

Run the tool locally

python dualkey.py

Contributing

Contributions are welcome! To contribute:

  • Fork the repository
  • Create a feature branch (git checkout -b feature-name)
  • Commit your changes (git commit -m 'Add feature')
  • Push to your branch (git push origin feature-name)
  • Create a Pull Request

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For questions, suggestions, or issues, feel free to open an issue on GitHub or reach out via email:

📧 denverhnt@gmail.com
🐙 GitHub: @ilovespectra

Metadata

Release files for dualkey 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dualkey 1.1.2
File Size Uploaded
dualkey-1.1.2.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dualkey 1.1.2
File Interpreter ABI Platform
dualkey-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / dualkey-1.1.2.tar.gz

Download URL dualkey-1.1.2.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1bfde4d2532fd3422ef933cb538490f2c29d5bd5fd6a37d2d202bffb0cc2c4fc
BLAKE2b-256 checksum
How to use checksums
32a730d7760127c8c469a08cb0c674bfab6535ac29400083f8f148f00074529f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.5

Release files / dualkey-1.1.2-py3-none-any.whl

Download URL dualkey-1.1.2-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e719ac1bba41f469b0143578db5885ef26fe0d21443ac9e63ae4bbc51d6fed92
BLAKE2b-256 checksum
How to use checksums
c797bd0ed61177ef169f6b26da1f1b654867f10c59852e3176ee2f09eb5ca5e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.5

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page