Skip to main content

KODE 8

PyPI version Python versions License: MIT

KODE 8 est une petite bibliothèque Python (+ CLI) qui implémente un encodage texte réversible : chaque octet UTF-8 devient un token hexadécimal préfixé par 8 (ex. 'S'853), regroupé par blocs de 6 caractères.

⚠️ Ce n'est pas un outil de sécurité. KODE 8 est une simple transformation de représentation, au même titre que base64 ou hex — pas un chiffrement. N'importe qui connaissant le format peut décoder instantanément le contenu. Ne l'utilisez pas pour protéger des données sensibles, contourner des dispositifs de sécurité ou masquer du trafic malveillant.

Installation

pip install kode8

Utilisation en Python

import kode8

encoded = kode8.encode("Hello")
print(encoded)
# '848865 86C86C 86F'

decoded = kode8.decode(encoded)
print(decoded)
# 'Hello'

Taille de bloc personnalisée (doit être un multiple de 3) :

kode8.encode("Hi", group_size=3)
# '848 869'

Utilisation en ligne de commande

kode8 encode "Hello"
# 848865 86C86C 86F

kode8 decode "848865 86C86C 86F"
# Hello

API

Fonction Signature Description
encode encode(text: str, group_size: int = 6) -> str Encode un texte en tokens KODE 8
decode decode(code: str) -> str Décode une chaîne KODE 8 en texte

Développement

Depuis le dossier source du projet :

pip install -e ".[dev]"
pytest

Licence

MIT — voir LICENSE.

Release files for kode8 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kode8 0.1.1
File Size Uploaded
kode8-0.1.1.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kode8 0.1.1
File Interpreter ABI Platform
kode8-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / kode8-0.1.1.tar.gz

Download URL kode8-0.1.1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
63746724b5f158b5818b6696ca028a0de39c5861639a5660d3d1ee204f890588
BLAKE2b-256 checksum
How to use checksums
a639103c238447a0a60ecbdde6da1d4f1b74d6576f42bf7543549795f49248dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release files / kode8-0.1.1-py3-none-any.whl

Download URL kode8-0.1.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10bb3f4e3c3a866b2e0154e7d470cd2899a2eb77b77c21a15d8bd38a760b6b59
BLAKE2b-256 checksum
How to use checksums
0d8b0df8177b3372f5f59222a3e553ee6c16b81b0c7348b3faacdfe92b4a767f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page