-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
29 lines (26 loc) · 1.28 KB
/
main.py
File metadata and controls
29 lines (26 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import sys
import time
from src.detecteur_crypto import DetecteurCryptoOrchestrateur, ResultatAnalyse
from src.analyzers.blowfish_analyzer import Blowfish_Analyzer
from src.analyzers.aes_cbc_analyzer import Aes_Cbc_Analyzer
from src.analyzers.chacha20_analyzer import ChaCha20_Analyzer
from src.interface_console import consoleInterface
import os
from rich.progress import track
# print(DetecteurCryptoOrchestrateur().analyser_fichier_specifique('data/mission1.enc'))
# try:
# resultat_dechiffrement: bytes = Blowfish_Analyzer().dechiffrer("data/mission3.enc", Blowfish_Analyzer().generer_cles_candidates('keys/wordlist.txt')[2])
# print(f"Résultat du déchiffrement : {resultat_dechiffrement.decode('utf-8')}")
# except ValueError as ve:
# print(ve)
# except FileNotFoundError:
# print("Erreur: Le fichier 'mission3.enc' est introuvable.")
consoleInterface()
# print(DetecteurCryptoOrchestrateur().mission_complete_automatique('data/', 'keys/wordlist.txt'))
# try:
# resultat_dechiffrement: bytes = ChaCha20_Analyzer().dechiffrer("data/mission2.enc", os.urandom(32))
# print(f"Résultat du déchiffrement : {resultat_dechiffrement}")
# except ValueError as ve:
# print(ve)
# except FileNotFoundError:
# print("Erreur: Le fichier 'mission2.enc' est introuvable.")