Alphabet amélioré [stable~95]

This commit is contained in:
xdrm 2015-05-22 10:46:37 +02:00
parent b7b17878bb
commit d1420e457f
1 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ def decodeChar(pChar, pSIGMA, pROTOR):
#############################################################################################################################
# DEFINITION DE L'ALPHABET
SIGMA = 'abcdefghijklmnopqrstuvwxyz,.?!:[](){}-_0123456789#$*/ \\';
SIGMA = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz,.?!:[](){}-_0123456789#$*/ \\"\'';
# ALPHABET FORMATE EN LISTE
SIGMA = list(SIGMA);
@ -107,7 +107,7 @@ for i in range(0, LEVEL):
# printRotors(ROTOR);
# SAISIE DU MESSAGE
m = ( raw_input('Message: ') ).lower();
m = ( raw_input('Message: ') );
# CHOIX DU TYPE (ENCODE / DECODE)
type = 'X';
@ -138,4 +138,4 @@ else:
M = M[::-1];
print
print 'Enigma :', M
print 'Enigma :', M