Encrypt text by shifting keys on the QWERTY keyboard.
Project description
Keyslide
Description
Keyslide is a Python package offering a playful approach to text encryption and decryption—think Caesar cipher, but mapped to the physical QWERTY keyboard! Shift letters left or right across keyboard rows, either programmatically or via command line. Useful for simple obfuscation, puzzles, or just for fun.
Table of Contents
Installation
Install from PyPI:
pip install keyslide
Usage
Python API
from keyslide import encrypt, decrypt
text = "Hello, World!"
key = 2 # Shift right by 2 keys
cipher = encrypt(text, key)
print(cipher) # Encrypted text
plain = decrypt(cipher, key)
print(plain) # Should print: Hello, World!
Command Line
Encrypt:
keyslide.encrypt "Hello, World!" 1
Output:
Jr;;p. Ept;f@
Decrypt:
keyslide.decrypt "Jr;;p. Ept;f@" 1
Output:
Hello, World!
Notes:
- Negative keys shift left:
keyslide.encrypt "Hello, World!" -1 - Unknown characters (not on QWERTY) are unchanged.
Features
- 🔤 Keyboard-based encryption: Shift letters based on their QWERTY row positions.
- 🛠️ Easy API: Use
encrypt()anddecrypt()in your Python code. - 💻 CLI ready: Quick command-line access with
keyslide.encryptandkeyslide.decrypt. - ➡️ Customizable key: Shift any number of steps, positive (right) or negative (left).
Contributing
Contributions are welcome!
- Open issues for bugs or feature requests.
- Submit pull requests for improvements.
License
This project is licensed under the 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 Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file keyslide-0.7-py3-none-any.whl.
File metadata
- Download URL: keyslide-0.7-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
389d4af08d5187dd08a6a0c79017424658e115c7aa3187ff6cd98e1ccf552f27
|
|
| MD5 |
5e8cd4901fccc51ba01f411e3897dc55
|
|
| BLAKE2b-256 |
c458722879464599ebdd1274e446473c848eb681e0eb191547fb239a437f463c
|