I'm trying to create a Python Ciphersaber 2 implementation since those that I've found on the net appear to produce gibberish. During the deciphering, I need to be able to xor a single character of a string with a keystream that is represented by integer values, and then cast that result back into a string character. Please note I am entirely new to Python so disregard my awful failures.
Things I've tried so far:
plaintext[i] = ord(msg[i] ^ keystream[i]
plaintext[i] = str(plaintext[i])
which resulted in integer values
and
plaintext[i] = ord(msg[i] ^ keystream[i]
plaintext[i] = chr(plaintext[i])
which results in values y, \xed \xf4 \x07. Are these byte values?
Appreciate any help