Metadata-Version: 2.4
Name: htmlcode
Version: 0.1.0
Summary: Hide encrypted text chunks inside a normal-looking HTML tech portal.
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: cryptography>=41.0.0
Provides-Extra: test
Requires-Dist: pytest>=7.0.0; extra == "test"

# htmlcode

`htmlcode` encrypts text with a password, embeds the ciphertext into hidden
HTML spans, and can later extract and decrypt it.

## CLI

```sh
htmlcode encrypt --text "Hello" --password pass --output demo.html
htmlcode decrypt --input demo.html --password pass --output decrypted.txt
```

Defaults:

- `encrypt --output`: `demo.html`
- `encrypt --chunk-size`: `32`
- `decrypt --input`: `demo.html` when present
- `decrypt --output`: `decrypted.txt`

## Python API

```python
from htmlcode import decrypt_from_html, encrypt_to_html

html = encrypt_to_html("Hello", "pass")
text = decrypt_from_html(html, "pass")
assert text == "Hello"
```
