Metadata-Version: 2.4
Name: kenxcode
Version: 1.0.0
Summary: KenxCode — Custom Python 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
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
Dynamic: author
Dynamic: home-page
Dynamic: requires-python

# KenxCode 🔐

**Custom Python code protection system** — encode file `.py` kamu ke format KenxCode yang unik dan terenkripsi. Hanya bisa dijalankan jika package `kenxcode` ter-install.

---

## Install

```bash
pip install kenxcode
```

---

## Cara Pakai

### 1. Encode file Python kamu
```bash
python kenxcode_tool.py encode myscript.py
# → Menghasilkan myscript.kenx
```

### 2. Jalankan file .kenx
```bash
kenxrun myscript.kenx
# atau
python kenxcode_tool.py run myscript.kenx
```

### 3. Pakai di Python code
```python
import kenxcode

# Encode
source = open("myscript.py").read()
encoded = kenxcode.encode(source)
open("myscript.kenx", "w").write(encoded)

# Run langsung
kenxcode.run_file("myscript.kenx")

# Decode (untuk keperluan kamu sendiri)
source = kenxcode.decode(open("myscript.kenx").read())
```

### 4. Batch encode seluruh folder
```bash
python kenxcode_tool.py batch ./myproject/
```

---

## Cara Kerja

KenxCode menggunakan **5 layer enkripsi custom** secara berurutan:

| Layer | Teknik |
|-------|--------|
| 1 | Multi-pass XOR Scramble dengan seed deterministik |
| 2 | S-Box substitution (256-entry bijection, konstanta proprietary) |
| 3 | Spiral diffusion (CBC-like byte spreading) |
| 4 | Block permutation (Fisher-Yates deterministik) |
| 5 | Glyph encoding → Unicode karakter aneh |

Checksum 8-byte custom diverifikasi saat decode — file yang dimanipulasi **tidak akan bisa dijalankan**.

---

## Contoh Output .kenx

```
#kenxcode::v3::encoded
꩷꩸꩹ꓕꀁꁱꀋꓠꁵꀄꁬꀎꓝꓐꁷꀅ꒠꒫ꁴꀆꓟꀂꁮꀌꀊꓡ꩜ꓑꀁꁱꀋ...
꩷꩸꩹
#kenxcode::end
```

---

## Lisensi
MIT — tapi algoritma KenxCode adalah proprietary. Dilarang reverse-engineer.
