Alphabet amélioré [stable~95]
This commit is contained in:
parent
b7b17878bb
commit
d1420e457f
|
@ -82,7 +82,7 @@ def decodeChar(pChar, pSIGMA, pROTOR):
|
||||||
#############################################################################################################################
|
#############################################################################################################################
|
||||||
|
|
||||||
# DEFINITION DE L'ALPHABET
|
# DEFINITION DE L'ALPHABET
|
||||||
SIGMA = 'abcdefghijklmnopqrstuvwxyz,.?!:[](){}-_0123456789#$*/ \\';
|
SIGMA = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz,.?!:[](){}-_0123456789#$*/ \\"\'';
|
||||||
|
|
||||||
# ALPHABET FORMATE EN LISTE
|
# ALPHABET FORMATE EN LISTE
|
||||||
SIGMA = list(SIGMA);
|
SIGMA = list(SIGMA);
|
||||||
|
@ -107,7 +107,7 @@ for i in range(0, LEVEL):
|
||||||
# printRotors(ROTOR);
|
# printRotors(ROTOR);
|
||||||
|
|
||||||
# SAISIE DU MESSAGE
|
# SAISIE DU MESSAGE
|
||||||
m = ( raw_input('Message: ') ).lower();
|
m = ( raw_input('Message: ') );
|
||||||
|
|
||||||
# CHOIX DU TYPE (ENCODE / DECODE)
|
# CHOIX DU TYPE (ENCODE / DECODE)
|
||||||
type = 'X';
|
type = 'X';
|
||||||
|
@ -138,4 +138,4 @@ else:
|
||||||
M = M[::-1];
|
M = M[::-1];
|
||||||
|
|
||||||
print
|
print
|
||||||
print 'Enigma :', M
|
print 'Enigma :', M
|
Loading…
Reference in New Issue