Skip to content

Commit a3a15ec

Browse files
committed
Created utils folder to share functions between projects
1 parent d3f9640 commit a3a15ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

password-storage/caesar_cipher.py renamed to utils/caesar_cipher.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ def encrypt(original_message, key):
1313
'u', 'v', 'w', 'x', 'y', 'z')
1414

1515
encrypted_message = ''
16-
key = alphabet.index(key)
16+
17+
if type(key) == str:
18+
key = alphabet.index(key)
1719

1820
# Encrypts the original message then stores in the return variable
1921
for letter in original_message.lower():

0 commit comments

Comments
 (0)