Re: Odd-length string

2013-10-06 Thread Piet van Oostrum
markot...@gmail.com writes: > I fixed this problem but encountered new problem. Problem was that some parts > that came throug my decryption were 00 or 0 the first symbol so the program > didnt show them. > > NEw problem is : Traceback (most recent call last): > File "C:\Users\Marko\Desktop\h

Re: Odd-length string

2013-10-06 Thread Terry Reedy
On 10/6/2013 10:37 AM, markot...@gmail.com wrote: NEw problem is : Traceback (most recent call last): File "C:\Users\Marko\Desktop\hacker.org\XOR cypher.py", line 35, in print("Key-" + str(võti) + ": " + str("".join(tulemus2))) TypeError: sequence item 0: expected str instance, bytes fo

Re: Odd-length string

2013-10-06 Thread Mark Lawrence
On 06/10/2013 15:37, markot...@gmail.com wrote: I fixed this problem but encountered new problem. Problem was that some parts that came throug my decryption were 00 or 0 the first symbol so the program didnt show them. NEw problem is : Traceback (most recent call last): File "C:\Users\Marko

Re: Odd-length string

2013-10-06 Thread markotaht
I fixed this problem but encountered new problem. Problem was that some parts that came throug my decryption were 00 or 0 the first symbol so the program didnt show them. NEw problem is : Traceback (most recent call last): File "C:\Users\Marko\Desktop\hacker.org\XOR cypher.py", line 35, in

Re: Odd-length string

2013-10-06 Thread Peter Otten
markot...@gmail.com wrote: > print("Key-" + str(võti) + ": " + str(unhexlify("".join(tulemus > > IM getting this error on this line. This is the print line of a decryption > program. I wanti it to convert the tulemus which is in HEX to ASCII so i > could read it. I could use online translator

Re: Odd-length string

2013-10-06 Thread Roy Smith
In article <0f1b6cd6-3025-4bdc-8f80-73a51a7ed...@googlegroups.com>, markot...@gmail.com wrote: > print("Key-" + str(võti) + ": " + str(unhexlify("".join(tulemus > > IM getting this error on this line. This is the print line of a decryption > program. I wanti it to convert the tulemus which