Re: HEX to ASCII

2013-10-08 Thread markotaht
esmaspäev, 7. oktoober 2013 18:52.21 UTC+3 kirjutas Piet van Oostrum: markot...@gmail.com writes: This is the code i came up with: from teisendaja import * from operator import * import binascii teisendus = teisendus() kood = input(Kood: ) key = input(Võti: )

Re: HEX to ASCII

2013-10-08 Thread markotaht
esmaspäev, 7. oktoober 2013 17:16.29 UTC+3 kirjutas Mark Lawrence: On 07/10/2013 14:54, markot...@gmail.com wrote: I forgot to tell. The teisendaja module that i have imported, is a number converter that allow to convert numbers from one base to another. i mostly use it for HEX to BIN

Re: HEX to ASCII

2013-10-08 Thread Mark Lawrence
On 08/10/2013 09:13, markot...@gmail.com wrote: esmaspäev, 7. oktoober 2013 17:16.29 UTC+3 kirjutas Mark Lawrence: On 07/10/2013 14:54, markot...@gmail.com wrote: I forgot to tell. The teisendaja module that i have imported, is a number converter that allow to convert numbers from one base

Re: HEX to ASCII

2013-10-07 Thread markotaht
of format. how can i get rid of the b. Or does anyone have a better idea how to translate HEX into ASCII and sort out the lines that make sense Why do you post the same question twice under different subjects? -- Because i was told so, cause the subject change so it cant

Re: HEX to ASCII

2013-10-07 Thread markotaht
I forgot to tell. The teisendaja module that i have imported, is a number converter that allow to convert numbers from one base to another. i mostly use it for HEX to BIN and vice versa, but it supports other bases too. -- https://mail.python.org/mailman/listinfo/python-list

Re: HEX to ASCII

2013-10-07 Thread Mark Lawrence
On 07/10/2013 14:54, markot...@gmail.com wrote: I forgot to tell. The teisendaja module that i have imported, is a number converter that allow to convert numbers from one base to another. i mostly use it for HEX to BIN and vice versa, but it supports other bases too. That's nice to know,

Re: HEX to ASCII

2013-10-07 Thread Piet van Oostrum
markot...@gmail.com writes: This is the code i came up with: from teisendaja import * from operator import * import binascii teisendus = teisendus() kood = input(Kood: ) key = input(Võti: ) chunksize = 2 vastus = [teisendus.teisendus3(16,2,kood[i: (i + chunksize)]) for i in range(0,

HEX to ASCII

2013-10-06 Thread markotaht
the code. everything else is generated by the decrytion process and the unhexlify command. So my guess is, the join command cant handle the bu type of format. how can i get rid of the b. Or does anyone have a better idea how to translate HEX into ASCII and sort out the lines that make sense

Re: HEX to ASCII

2013-10-06 Thread Peter Otten
', ...] b.join(tulemus2) b'uo\x00\x1d |N\x0f9jKJ#AK5k_\x1e,j\x0c\x08i(\x06\\r3\x1fVs9\x1d' Or does anyone have a better idea how to translate HEX into ASCII and sort out the lines that make sense That is very likely, but you have to be specific about the input data and what makes sense

Re: HEX to ASCII

2013-10-06 Thread MRAB
'] the Key- is the key im using to decrypt the code. everything else is generated by the decrytion process and the unhexlify command. So my guess is, the join command cant handle the bu type of format. how can i get rid of the b. Or does anyone have a better idea how to translate HEX

Re: HEX to ASCII

2013-10-06 Thread Piet van Oostrum
'] the Key- is the key im using to decrypt the code. everything else is generated by the decrytion process and the unhexlify command. So my guess is, the join command cant handle the bu type of format. how can i get rid of the b. Or does anyone have a better idea how to translate HEX