The program reads the file the user wants to encrypt:
with open(encryptSpecialFileName,mode= "r",encoding= "UTF-8") as myFile:
fileToSpecialEncrypt = myFile.read().splitlines()
The program then sets up the list for the encrypted message.
encryptedSpecialFile = []
for string in fileToSpecialEncrypt:
s1 = ""
for char in string:
(Here it calls the function that encrypts the file)
encryptedSpecialChar = encryptSpecialCharacter(char, offset)
Then the encrypted characters are added to the list.
s1 = s1 + encryptedSpecialChar
encryptedSpecialFile.append(s1)
How would I split this string into chunks of five to make decryption more difficult?