Metadata-Version: 2.4
Name: kenxcode
Version: 2.0.0
Summary: KenxCode v2.0 — Multi-Language Code Protection & Obfuscation
Home-page: https://github.com/yourname/kenxcode
Author: KenxCode
Author-email: KenxCode <your@email.com>
License: MIT
Keywords: obfuscation,code protection,encryption,kenxcode,multi-language
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Provides-Extra: dev
Dynamic: author
Dynamic: home-page
Dynamic: requires-python

# KenxCode v2.0 — Multi-Language Code Protection

Proteksi source code dengan 5-layer enkripsi proprietary KenxCode.

## Bahasa yang Didukung

| Ekstensi       | Bahasa         |
|----------------|----------------|
| `.py`          | Python         |
| `.js`          | JavaScript     |
| `.html` / `.htm` | HTML         |
| `.css`         | CSS            |
| `.c` / `.h`    | C / C Header   |

Output file terenkripsi memakai ekstensi `.kenx`.

## Cara Pakai (Interactive Menu)

```bash
python kenxenc.py
```

Program akan tampil menu interaktif:
- **[1] Enkripsi File** — Pilih bahasa, masukkan path file → output `.kenx` tersimpan di folder `output/`
- **[2] Dekripsi File** — Masukkan path `.kenx` → source asli dikembalikan di folder `output/`
- **[3] Batch Enkripsi** — Enkripsi semua file dalam satu folder sekaligus
- **[4] Verifikasi** — Test encode→decode, pastikan identik sempurna
- **[5] Informasi** — Detail teknis 5-layer enkripsi

## Struktur Folder

```
kenxenc_v2/
├── kenxenc.py          ← Script utama (jalankan ini)
├── kenxcode/           ← Package enkripsi
│   ├── __init__.py
│   └── _core.py        ← 5-layer engine
├── output/             ← Semua output tersimpan di sini (auto-created)
└── package/            ← Source untuk build pip package
    ├── setup.py
    └── pyproject.toml
```

## Install sebagai Package

```bash
cd package
pip install -e .
```

Atau build distributable:
```bash
pip install build
python -m build
pip install dist/kenxcode-2.0.0-py3-none-any.whl
```

## 5-Layer Enkripsi

1. **XOR Scramble** — Multi-pass XOR dengan tabel deterministik dari panjang data
2. **Block Permutation** — Fisher-Yates shuffle block 64-byte
3. **S-Box Substitution** — 256-entry bijection dengan konstanta magic
4. **Spiral Diffusion** — CBC-like byte spreading (tanpa key eksternal)
5. **Glyph Encoding** — Binary → Unicode exotic character string

## Requirements

- Python 3.8+
- Tidak ada dependency eksternal — **zero dependencies**

## Catatan

- File `.kenx` hanya bisa didekripsi dengan KenxCode yang sama
- Algoritma tidak bergantung pada key eksternal (self-seeded dari struktur data)
- Tidak cocok untuk enkripsi kriptografis — ini adalah **code obfuscation**
