Skip to main content

No project description provided

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!" 2

Output:
Jrnno, Ynrce!

Decrypt:

keyslide.decrypt "Jrnno, Ynrce!" 2

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.5-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file keyslide-0.5-py3-none-any.whl.

File metadata

  • Download URL: keyslide-0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4be355d0c090521d05555a4b2368570584351043aa505ac9926f37ce09bf7c99
MD5 0aa6421e2d783f8c73537740c9885a13
BLAKE2b-256 8efb9d1dcd079161144d964fbb393fa8a76b1f78575ba5f46c21d0810e18264b

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