noxcrypt 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- noxcrypt-0.1.0/LICENSE +21 -0
- noxcrypt-0.1.0/PKG-INFO +114 -0
- noxcrypt-0.1.0/README.md +92 -0
- noxcrypt-0.1.0/pyproject.toml +39 -0
- noxcrypt-0.1.0/setup.cfg +4 -0
- noxcrypt-0.1.0/src/noxcrypt/__init__.py +7 -0
- noxcrypt-0.1.0/src/noxcrypt/__main__.py +4 -0
- noxcrypt-0.1.0/src/noxcrypt/algos.py +737 -0
- noxcrypt-0.1.0/src/noxcrypt/cli.py +129 -0
- noxcrypt-0.1.0/src/noxcrypt/clipboard.py +33 -0
- noxcrypt-0.1.0/src/noxcrypt/style.py +52 -0
- noxcrypt-0.1.0/src/noxcrypt/tui.py +372 -0
- noxcrypt-0.1.0/src/noxcrypt.egg-info/PKG-INFO +114 -0
- noxcrypt-0.1.0/src/noxcrypt.egg-info/SOURCES.txt +19 -0
- noxcrypt-0.1.0/src/noxcrypt.egg-info/dependency_links.txt +1 -0
- noxcrypt-0.1.0/src/noxcrypt.egg-info/entry_points.txt +2 -0
- noxcrypt-0.1.0/src/noxcrypt.egg-info/requires.txt +6 -0
- noxcrypt-0.1.0/src/noxcrypt.egg-info/top_level.txt +1 -0
- noxcrypt-0.1.0/tests/test_algos.py +120 -0
- noxcrypt-0.1.0/tests/test_cli.py +36 -0
- noxcrypt-0.1.0/tests/test_tui.py +37 -0
noxcrypt-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 cyph3r_n0x
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
noxcrypt-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: noxcrypt
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Boîte à outils interactive (terminal) pour chiffrer et déchiffrer les encodages classiques des CTF
|
|
5
|
+
Author: cyph3r_n0x
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Keywords: ctf,crypto,cipher,rot13,base64,vigenere,tui,cli,cybersecurity
|
|
8
|
+
Classifier: Environment :: Console
|
|
9
|
+
Classifier: Intended Audience :: Information Technology
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Topic :: Security :: Cryptography
|
|
12
|
+
Classifier: Topic :: Utilities
|
|
13
|
+
Requires-Python: >=3.10
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: textual>=8.0
|
|
17
|
+
Requires-Dist: rich>=13.0
|
|
18
|
+
Provides-Extra: dev
|
|
19
|
+
Requires-Dist: pytest>=8; extra == "dev"
|
|
20
|
+
Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
|
|
23
|
+
# noxcrypt
|
|
24
|
+
|
|
25
|
+
Boîte à outils **interactive** (interface plein écran en couleurs, dans le terminal) pour chiffrer / déchiffrer
|
|
26
|
+
les encodages et chiffrements classiques des CTF. Pensé comme `arsenal-ng` : tu cherches, tu choisis, tu tapes, tu vois le résultat en direct.
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install noxcrypt # depuis PyPI (une fois publié)
|
|
32
|
+
pipx install noxcrypt # recommandé sur Kali (pas de conflit système)
|
|
33
|
+
pip install . # depuis les sources
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Python 3.10+.
|
|
37
|
+
|
|
38
|
+
## Utilisation
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
noxcrypt # interface interactive
|
|
42
|
+
noxcrypt tui "SGVsbG8=" -a auto # interface, texte et algo préremplis
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Dans l'interface
|
|
46
|
+
|
|
47
|
+
| Touche | Action |
|
|
48
|
+
|---|---|
|
|
49
|
+
| `Tab` | changer de zone (recherche / liste / clé / entrée / résultat) |
|
|
50
|
+
| `Ctrl+F` | aller à la recherche (`rot`, `base`, `xor`, `morse`…) |
|
|
51
|
+
| `F2` ou `Ctrl+T` | basculer **Chiffrer / Déchiffrer** |
|
|
52
|
+
| `F3` ou `Ctrl+G` | copier le résultat (presse-papiers + OSC52, marche en SSH/tmux) |
|
|
53
|
+
| `F4` ou `Ctrl+R` | envoyer le résultat dans l'entrée (pour enchaîner) |
|
|
54
|
+
| `Ctrl+Q` | quitter |
|
|
55
|
+
|
|
56
|
+
Le résultat se met à jour à chaque frappe.
|
|
57
|
+
L'entrée **auto** (par défaut) essaie tous les décodeurs sans clé, y compris en chaîne
|
|
58
|
+
(ex. `base64 > hex`), et classe les pistes par score. Les entrées **brute** testent toutes les clés
|
|
59
|
+
(César, XOR 1 octet, rail fence, affine).
|
|
60
|
+
|
|
61
|
+
### En ligne de commande (sans interface)
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
noxcrypt list
|
|
65
|
+
noxcrypt enc rot13 "Hello CTF"
|
|
66
|
+
noxcrypt dec base64 "SGVsbG8gQ1RG"
|
|
67
|
+
noxcrypt dec vigenere "lxfopvefrnhr" -k lemon
|
|
68
|
+
noxcrypt dec affine "rclla" -k 5,8
|
|
69
|
+
noxcrypt enc xor "secret" -k 0x2a
|
|
70
|
+
echo "uryyb" | noxcrypt dec rot13
|
|
71
|
+
noxcrypt dec base64 -f fichier.txt
|
|
72
|
+
noxcrypt auto "NjY2YzYxNjc3YjYzNjgzNDMxNmU3ZA=="
|
|
73
|
+
noxcrypt brute caesar "khoor zruog"
|
|
74
|
+
noxcrypt brute xor 2d2e23262... # entrée en hexa
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
`enc` / `dec` écrivent le résultat brut (sans couleur) : utilisable dans un pipe.
|
|
78
|
+
|
|
79
|
+
## Algos (24)
|
|
80
|
+
|
|
81
|
+
| Type | Algos |
|
|
82
|
+
|---|---|
|
|
83
|
+
| BASE | base64, base64url, base32, base58, base85, ascii85 |
|
|
84
|
+
| NUM | hex, binary, octal, decimal, a1z26 |
|
|
85
|
+
| SUBST | rot13, rot47, caesar, atbash, vigenere, affine, bacon |
|
|
86
|
+
| TRANS | reverse, railfence |
|
|
87
|
+
| XOR | xor (clé texte ou `0xHEX`, entrée/sortie en hexa) |
|
|
88
|
+
| CODE | morse |
|
|
89
|
+
| WEB | url, html |
|
|
90
|
+
|
|
91
|
+
Clés : `caesar` → `3` · `vigenere` → `lemon` · `affine` → `5,8` · `railfence` → `3` · `xor` → `0x2a` ou `key`.
|
|
92
|
+
|
|
93
|
+
## Limites (à connaître)
|
|
94
|
+
|
|
95
|
+
- `auto` ne tente rot13 / rot47 / atbash / reverse / César qu'en bout de chaîne, et ne les affiche que si le résultat contient un mot connu ou un flag. Un texte dans une langue absente de la petite liste de mots peut passer à côté.
|
|
96
|
+
- Le score est une heuristique (mots courants, forme `flag{...}`, bigrammes anglais/français). Lis toujours les premières pistes, pas seulement la première.
|
|
97
|
+
- `brute xor` ne casse que les clés d'**un seul octet**.
|
|
98
|
+
- Pas (encore) de RSA, AES, Playfair, XOR multi-octets, ni de cassage de hash.
|
|
99
|
+
|
|
100
|
+
## Développement
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
python -m venv .venv && . .venv/bin/activate
|
|
104
|
+
pip install -e ".[dev]"
|
|
105
|
+
pytest
|
|
106
|
+
python -m build # wheel + sdist (pip install build)
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Ajouter un algo : écrire `enc` / `dec` dans `src/noxcrypt/algos.py`, puis l'ajouter à la liste `_ALGOS`.
|
|
110
|
+
Il apparaît tout seul dans l'interface, la CLI, `auto` et la recherche.
|
|
111
|
+
|
|
112
|
+
## Licence
|
|
113
|
+
|
|
114
|
+
MIT
|
noxcrypt-0.1.0/README.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# noxcrypt
|
|
2
|
+
|
|
3
|
+
Boîte à outils **interactive** (interface plein écran en couleurs, dans le terminal) pour chiffrer / déchiffrer
|
|
4
|
+
les encodages et chiffrements classiques des CTF. Pensé comme `arsenal-ng` : tu cherches, tu choisis, tu tapes, tu vois le résultat en direct.
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
pip install noxcrypt # depuis PyPI (une fois publié)
|
|
10
|
+
pipx install noxcrypt # recommandé sur Kali (pas de conflit système)
|
|
11
|
+
pip install . # depuis les sources
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Python 3.10+.
|
|
15
|
+
|
|
16
|
+
## Utilisation
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
noxcrypt # interface interactive
|
|
20
|
+
noxcrypt tui "SGVsbG8=" -a auto # interface, texte et algo préremplis
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Dans l'interface
|
|
24
|
+
|
|
25
|
+
| Touche | Action |
|
|
26
|
+
|---|---|
|
|
27
|
+
| `Tab` | changer de zone (recherche / liste / clé / entrée / résultat) |
|
|
28
|
+
| `Ctrl+F` | aller à la recherche (`rot`, `base`, `xor`, `morse`…) |
|
|
29
|
+
| `F2` ou `Ctrl+T` | basculer **Chiffrer / Déchiffrer** |
|
|
30
|
+
| `F3` ou `Ctrl+G` | copier le résultat (presse-papiers + OSC52, marche en SSH/tmux) |
|
|
31
|
+
| `F4` ou `Ctrl+R` | envoyer le résultat dans l'entrée (pour enchaîner) |
|
|
32
|
+
| `Ctrl+Q` | quitter |
|
|
33
|
+
|
|
34
|
+
Le résultat se met à jour à chaque frappe.
|
|
35
|
+
L'entrée **auto** (par défaut) essaie tous les décodeurs sans clé, y compris en chaîne
|
|
36
|
+
(ex. `base64 > hex`), et classe les pistes par score. Les entrées **brute** testent toutes les clés
|
|
37
|
+
(César, XOR 1 octet, rail fence, affine).
|
|
38
|
+
|
|
39
|
+
### En ligne de commande (sans interface)
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
noxcrypt list
|
|
43
|
+
noxcrypt enc rot13 "Hello CTF"
|
|
44
|
+
noxcrypt dec base64 "SGVsbG8gQ1RG"
|
|
45
|
+
noxcrypt dec vigenere "lxfopvefrnhr" -k lemon
|
|
46
|
+
noxcrypt dec affine "rclla" -k 5,8
|
|
47
|
+
noxcrypt enc xor "secret" -k 0x2a
|
|
48
|
+
echo "uryyb" | noxcrypt dec rot13
|
|
49
|
+
noxcrypt dec base64 -f fichier.txt
|
|
50
|
+
noxcrypt auto "NjY2YzYxNjc3YjYzNjgzNDMxNmU3ZA=="
|
|
51
|
+
noxcrypt brute caesar "khoor zruog"
|
|
52
|
+
noxcrypt brute xor 2d2e23262... # entrée en hexa
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
`enc` / `dec` écrivent le résultat brut (sans couleur) : utilisable dans un pipe.
|
|
56
|
+
|
|
57
|
+
## Algos (24)
|
|
58
|
+
|
|
59
|
+
| Type | Algos |
|
|
60
|
+
|---|---|
|
|
61
|
+
| BASE | base64, base64url, base32, base58, base85, ascii85 |
|
|
62
|
+
| NUM | hex, binary, octal, decimal, a1z26 |
|
|
63
|
+
| SUBST | rot13, rot47, caesar, atbash, vigenere, affine, bacon |
|
|
64
|
+
| TRANS | reverse, railfence |
|
|
65
|
+
| XOR | xor (clé texte ou `0xHEX`, entrée/sortie en hexa) |
|
|
66
|
+
| CODE | morse |
|
|
67
|
+
| WEB | url, html |
|
|
68
|
+
|
|
69
|
+
Clés : `caesar` → `3` · `vigenere` → `lemon` · `affine` → `5,8` · `railfence` → `3` · `xor` → `0x2a` ou `key`.
|
|
70
|
+
|
|
71
|
+
## Limites (à connaître)
|
|
72
|
+
|
|
73
|
+
- `auto` ne tente rot13 / rot47 / atbash / reverse / César qu'en bout de chaîne, et ne les affiche que si le résultat contient un mot connu ou un flag. Un texte dans une langue absente de la petite liste de mots peut passer à côté.
|
|
74
|
+
- Le score est une heuristique (mots courants, forme `flag{...}`, bigrammes anglais/français). Lis toujours les premières pistes, pas seulement la première.
|
|
75
|
+
- `brute xor` ne casse que les clés d'**un seul octet**.
|
|
76
|
+
- Pas (encore) de RSA, AES, Playfair, XOR multi-octets, ni de cassage de hash.
|
|
77
|
+
|
|
78
|
+
## Développement
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
python -m venv .venv && . .venv/bin/activate
|
|
82
|
+
pip install -e ".[dev]"
|
|
83
|
+
pytest
|
|
84
|
+
python -m build # wheel + sdist (pip install build)
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Ajouter un algo : écrire `enc` / `dec` dans `src/noxcrypt/algos.py`, puis l'ajouter à la liste `_ALGOS`.
|
|
88
|
+
Il apparaît tout seul dans l'interface, la CLI, `auto` et la recherche.
|
|
89
|
+
|
|
90
|
+
## Licence
|
|
91
|
+
|
|
92
|
+
MIT
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "noxcrypt"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Boîte à outils interactive (terminal) pour chiffrer et déchiffrer les encodages classiques des CTF"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
authors = [{ name = "cyph3r_n0x" }]
|
|
14
|
+
keywords = ["ctf", "crypto", "cipher", "rot13", "base64", "vigenere", "tui", "cli", "cybersecurity"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Environment :: Console",
|
|
17
|
+
"Intended Audience :: Information Technology",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Topic :: Security :: Cryptography",
|
|
20
|
+
"Topic :: Utilities",
|
|
21
|
+
]
|
|
22
|
+
dependencies = [
|
|
23
|
+
"textual>=8.0",
|
|
24
|
+
"rich>=13.0",
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
[project.optional-dependencies]
|
|
28
|
+
dev = ["pytest>=8", "pytest-asyncio>=0.23"]
|
|
29
|
+
|
|
30
|
+
[project.scripts]
|
|
31
|
+
noxcrypt = "noxcrypt.cli:main"
|
|
32
|
+
|
|
33
|
+
[tool.setuptools.packages.find]
|
|
34
|
+
where = ["src"]
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
[tool.pytest.ini_options]
|
|
38
|
+
testpaths = ["tests"]
|
|
39
|
+
asyncio_mode = "auto"
|
noxcrypt-0.1.0/setup.cfg
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"""noxcrypt - boite a outils crypto pour CTF (TUI + CLI)."""
|
|
2
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
3
|
+
|
|
4
|
+
try:
|
|
5
|
+
__version__ = version("noxcrypt")
|
|
6
|
+
except PackageNotFoundError: # execute depuis les sources, sans installation
|
|
7
|
+
__version__ = "0.0.0+local"
|