Metadata-Version: 2.4
Name: glyphsmythe
Version: 0.1.0
Summary: Reversible Unicode transforms and CLI for authorized LLM security and filter research (emoji VS stego, homoglyphs, zero-width).
Project-URL: Homepage, https://github.com/zaphodbeeblebrox3rd/glyphsmythe
Project-URL: Repository, https://github.com/zaphodbeeblebrox3rd/glyphsmythe
Project-URL: Issues, https://github.com/zaphodbeeblebrox3rd/glyphsmythe/issues
Project-URL: Documentation, https://github.com/zaphodbeeblebrox3rd/glyphsmythe/blob/main/FOX_STORY.md
Author-email: Erich <65462563+zaphodbeeblebrox3rd@users.noreply.github.com>
License: MIT License
        
        Copyright (c) 2026 Erich
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: llm,obfuscation,prompt-injection,steganography,unicode
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Security
Classifier: Typing :: Typed
Requires-Python: >=3.9
Provides-Extra: dev
Requires-Dist: build>=1.0; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff>=0.4; extra == 'dev'
Requires-Dist: twine>=5.0; extra == 'dev'
Description-Content-Type: text/markdown

# glyphsmythe

glyphsmythe is a small Python library and CLI for security researchers who need to probe how LLMs and content filters handle unusual Unicode. It provides reversible transforms you can call from tests, scripts, or shell pipelines.

This package is intended for defensive research and authorized testing only. See the [Acceptable Use Policy](https://github.com/zaphodbeeblebrox3rd/glyphsmythe/blob/main/ACCEPTABLE_USE.md) before use.

## Install

Requires Python 3.9 or newer.

```bash
pip install glyphsmythe
```

## What it does

- Emoji stego — hide UTF-8 bytes in variation selectors after a visible carrier (Paul Butler-style VS encoding)
- Homoglyphs — swap Latin letters for Cyrillic lookalikes and back
- Zero-width — encode bytes as ZWSP/ZWNJ (invisible on screen)
- Composable chains — layer transforms for regression fixtures
- Interleaved emoji stories — keep inline emoji visible while prose lives in variation selectors (`encode --interleave`; decode auto-detects)

Runtime dependencies: none (stdlib only). No install hooks, no network calls, no bundled executables.

## CLI

```bash
glyphsmythe encode --method emoji --carrier x --text "canary:probe-001"
glyphsmythe decode -i encoded.txt          # auto-detects transform
glyphsmythe analyze -i encoded.txt
glyphsmythe encode --interleave -i story.txt -o hidden.txt
glyphsmythe lab
glyphsmythe chat-demo --preset context-guard
```

## Python API

```python
from glyphsmythe import decode, encode_story
from glyphsmythe.compose import apply_chain

hidden = encode_story("Hello 🌟 world")
plain = decode(hidden)
```

## Documentation

- Full README and walkthroughs: https://github.com/zaphodbeeblebrox3rd/glyphsmythe
- Lantern Fox interleave demo: https://github.com/zaphodbeeblebrox3rd/glyphsmythe/blob/main/FOX_STORY.md
- Publishing notes: https://github.com/zaphodbeeblebrox3rd/glyphsmythe/blob/main/PUBLISHING.md

## License

MIT License. Use must also follow the project Acceptable Use Policy linked above.
