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

Uploaded Python 3

File details

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

File metadata

  • Download URL: keyslide-0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 cd5e5879afabd32e46d10144306db9143b2b17cd2a83c66231ad84ddce46c860
MD5 66510a8172b8ccf1d8ba59c95f89c56b
BLAKE2b-256 a3746687a7f6f5db08d1dff82cd88dcd1839d962728186cafd6ed413ee317936

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