summaryrefslogtreecommitdiff
path: root/cesar.py
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2024-09-17 15:32:53 +0200
committerjerome <jerome@xlinfo.fr>2024-09-17 15:32:53 +0200
commit550497e907868ac0249a18eef2a0fb7f5bcd9ed8 (patch)
tree5690fce051444c9897a2bcf610d174b20dfe6718 /cesar.py
parentcdb4e2f17863038e28ab063415f59cc4d94491d6 (diff)
downloadpython-550497e907868ac0249a18eef2a0fb7f5bcd9ed8.tar.gz
python-550497e907868ac0249a18eef2a0fb7f5bcd9ed8.zip
scapy
Diffstat (limited to 'cesar.py')
-rw-r--r--cesar.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cesar.py b/cesar.py
index 886f48e..2186651 100644
--- a/cesar.py
+++ b/cesar.py
@@ -2,6 +2,7 @@
import string
+
def decalage(char, key):
liste = list(string.ascii_lowercase)*2 + list(string.ascii_uppercase)*2
if char not in liste:
@@ -42,7 +43,7 @@ while True:
msg += decalage(lettre, clef)
print(f"rot{clef} : {msg}")
msg = ""
- print("***************")
+ print("************")
case "q":
print("bye")
exit()