Skip to content

Commit 40ad63b

Browse files
authored
Update encryption.py
1 parent 4cc981a commit 40ad63b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

password-storage/encryption.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
def caesar_cypher(message, key):
33
'''Encrypts a message using the caesar cypher [WIP]'''
44

5-
alphabet = ('a','b', 'c', 'd', 'e', 'f', 'g', 'h', 'i' ,'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z')
5+
alphabet = ('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i' , 'j', 'k', 'l', 'm',
6+
'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z')
67

78
encrypted = ''
89

@@ -12,6 +13,3 @@ def caesar_cypher(message, key):
1213
encrypted += alphabet[alphabet.index(m) + key]
1314

1415
return encrypted
15-
16-
17-
print(caesar_cypher('renato', 1))

0 commit comments

Comments
 (0)