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 Distribution

keyslide-0.4.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file keyslide-0.4.tar.gz.

File metadata

  • Download URL: keyslide-0.4.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for keyslide-0.4.tar.gz
Algorithm Hash digest
SHA256 b64a6668ccf337ac3315f120f40d265783f7c0bad5a1cd0d78eda7c6708a18f2
MD5 e9c74b4c1b681bc17651141c58bbff9d
BLAKE2b-256 af87feb209be68895e2a77136c0f411ec8db4fad54c17e86aee2a93c83dce51c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: keyslide-0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 152831e2ecc1f211263bc1cbe3196ab0fac133a9c02e5f2e4b00219d3324f6fe
MD5 274e418af26a60fdd95ab5de632af1f5
BLAKE2b-256 a310b6d0b52cdff07ac96e1e9e965d75f7b6364c4456e58aec1f63cbf8623ec0

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