Skip to main content

Progressive ROT + optional zlib compression -> UUID-like string

Project description

GHosTEncoding

Progressive ROT encoding (default start=21) with optional zlib compression.
Generates UUID-like encoded strings for lightweight obfuscation and data hiding.


🔧 Installation

pip install ghostencoding

🚀 Quick Example

from ghostencoding import encode_pipeline, decode_pipeline

# Encode text
encoded = encode_pipeline("hello world")
print("Encoded:", encoded)

# Decode back
decoded = decode_pipeline(encoded)
print("Decoded:", decoded)

Example Output:

Encoded: 789cabad-5651-d5b4-32d6-31d056010011-d80283
Decoded: hello world

⚙️ Advanced Options

Parameter Type Default Description
start int 21 Starting shift for progressive ROT
alphabet_mode str "printable" "printable" (all ASCII) or "letters" (A–Z, a–z)
compress bool True Enable/disable zlib compression

Example with Custom Options

encoded = encode_pipeline(
    "Secret message!",
    start=10,
    alphabet_mode="letters",
    compress=False
)
print("Encoded:", encoded)

decoded = decode_pipeline(
    encoded,
    start=10,
    alphabet_mode="letters",
    compress=False
)
print("Decoded:", decoded)

Example Output :

Encoded: 43706f65-7369-2064-776c-6d76636221
Decoded: Secret message!

💡 Tips

  • Compression helps for long/repetitive text; for tiny inputs it can add overhead.
  • Use alphabet_mode="letters" for clean, punctuation-free tokens.
  • Always use the same options for both encode/decode to ensure a correct roundtrip.

🪪 License

MIT License © 2025

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

ghostencoding-0.0.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

ghostencoding-0.0.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file ghostencoding-0.0.3.tar.gz.

File metadata

  • Download URL: ghostencoding-0.0.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for ghostencoding-0.0.3.tar.gz
Algorithm Hash digest
SHA256 4b182c3feeca52b756b507078f4c6b7ffaf6e3cb5b866c84600efff9399eb5ed
MD5 beccd615bc8335a3fee3e2a6e0471ba5
BLAKE2b-256 4f4f25aeb8e43d7a14c05ba6f02924321fd99bf5bc21c5d34eb43ef6bfd4bedc

See more details on using hashes here.

File details

Details for the file ghostencoding-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ghostencoding-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for ghostencoding-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9e19ea04617291ab474ad53b0e90c4cdd7c588176ab9c5f427f02959fab07d7e
MD5 0db9ac749dedbef58d196fa296c1bf13
BLAKE2b-256 b8f4c2ea8b43366f9c48675aadd1dcdc52fae7535c6703bb8ce1ddc89d6e8cdf

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