Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions Caesar_Cipher.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,31 @@
def encrypt(text, shift):
count_text = len(text)
move = []
for run in range(0, count_text):

for m in range(0, count_text):
move += alphabet[shift]
if run in move:
move += alphabet[shift] + 1
alphabet[shift] = alphabet[shift + 1]
shift = shift + 1

print(move)

# for run in range(0, count_text):
# move += alphabet[shift]
#
#
#
#
#
#
#
#
# for check in move:
# if check in move:
# newShift = alphabet[move] + 1
# newShift += 1
# move += alphabet[newShift]
#
# print(move)


encrypt(text=text, shift=shift)