Outils d'utilisateurs

Outils du Site


hackingweek_2014:crypto:crypto1

Différences

Cette page vous donne les différences entre la révision choisie et la version actuelle de la page.

Lien vers cette vue

hackingweek_2014:crypto:crypto1 [2014/02/27 12:28]
nico34
hackingweek_2014:crypto:crypto1 [2017/04/09 15:33] (Version actuelle)
Ligne 1: Ligne 1:
-test+**Enoncé :** 
 + 
 +Décodez le message suivant qui a été obtenu par un chiffrement de Vigenère, la clef est dedans: 
 + 
 +VCNWAYHDNHYNCNULYDEJXYLADJNXUTACNUFWFNOVOYEXZMWQNWWBNIJMNBQMUBMKJPW 
 + 
 +**Solution :** 
 + 
 + from PyGenere import * 
 + ciphertext = "VCNWAYHDNHYNCNULYDEJXYLADJNXUTACNUFWFNOVOYEXZMWQNWWBNIJMNBQMUBMKJPW" 
 + lang = 'fr' 
 + for i in range(1,10): 
 + print i 
 + key = VigCrack(ciphertext).set_language(lang).crack_codeword(i) 
 + print key 
 + print Vigenere(ciphertext).decipher(key) 
 + 
 +Key:UUJJF 
 + 
 +Message:BIENVENUECETTEPREUVEDECRYPTOLOGIELACLEFQUEVOUSCHERCHEZESTSHHAHDBEVC 
 + 
 +Flag:**SHHAHDBEVC**
hackingweek_2014/crypto/crypto1.1393500493.txt.gz · Dernière modification: 2017/04/09 15:33 (modification externe)