From d1420e457f58b985c4d522abd4a2937ccfaf4ff5 Mon Sep 17 00:00:00 2001 From: xdrm Date: Fri, 22 May 2015 10:46:37 +0200 Subject: [PATCH] =?UTF-8?q?Alphabet=20am=C3=A9lior=C3=A9=20[stable~95]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source.py b/source.py index 36169b5..2aff013 100644 --- a/source.py +++ b/source.py @@ -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 \ No newline at end of file