for i in range (0 , quotient) : for j in range (0 , keyLen) : c = int((ord(output[i*keyLen+j]) - ord('a') - (ord(key[j]) - ord('a'))) % 26 + ord('a')) inp += chr(c)
for i in range (0 , remainder) : c = int((ord(output[quotient*keyLen+i]) - ord('a') -(ord(key) - ord('a'))) % 26 + ord('a')) inp += chr(c)