A couple of things stand out:
Not sure what you meant here, but I'm pretty sure this wasn't it.
Code:
cipherText = addchr(keyValue, m)
If you delete "m = str", this will encrypt the first character of the string m and put the result in cipherText. How are you going to get to the other characters of the plaintext?
Code:
for i in cipherText:
return cipherText
You can only return from a function once, so a simple return in a loop is not meaningful. Nevertheless, cipherText only ever has one character in it, so the loop could never execute a second time anyway.
Bookmarks