Skip to main content

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() and decrypt() in your Python code.
  • 💻 CLI ready: Quick command-line access with keyslide.encrypt and keyslide.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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

keyslide-0.7-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

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

Hashes for keyslide-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 389d4af08d5187dd08a6a0c79017424658e115c7aa3187ff6cd98e1ccf552f27
MD5 5e8cd4901fccc51ba01f411e3897dc55
BLAKE2b-256 c458722879464599ebdd1274e446473c848eb681e0eb191547fb239a437f463c

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