Re: [Tutor] binary, ascii, steganography

2011-03-19 Thread Alan Gauld
"Steven D'Aprano" wrote with how to get binary to text, so your suggestions are greatly appreciated. I'll get to it! (0001 = a, 0010 = b, ...) >>> int('01101110', 2) 110 >>> chr(110) 'n' And if you really want to use non standard character values you could look at the string maket

Re: [Tutor] binary, ascii, steganography

2011-03-18 Thread Steven D'Aprano
jaco erasmus wrote: Thank you for the help, everyone. Like I said, I got the basics for my text file comparison, but my problem is with how to get binary to text, so your suggestions are greatly appreciated. I'll get to it! (0001 = a, 0010 = b, ...) >>> int('01101110', 2) 110 >>> chr(1

Re: [Tutor] binary, ascii, steganography

2011-03-18 Thread jaco erasmus
Thank you for the help, everyone. Like I said, I got the basics for my text file comparison, but my problem is with how to get binary to text, so your suggestions are greatly appreciated. I'll get to it! (0001 = a, 0010 = b, ...) Cheers, and thanks again. Jakes

Re: [Tutor] binary, ascii, steganography

2011-03-18 Thread Steven D'Aprano
jaco erasmus wrote: Baby steps, first, though. For the moment, I just want to compare 2 text files, have similar letters give me 0 and different letters give me 1. I want to take those and turn them into letters. How would I do that? The basic algorithm is: 1 Read one file into text1 2 Rea

Re: [Tutor] binary, ascii, steganography

2011-03-18 Thread Hugo Arts
On Fri, Mar 18, 2011 at 8:33 AM, jaco erasmus wrote: > Hi there, list > The other day I got bored at work and decided to give this programming thing > a try, since Rick Romero said it's becoming all the rage these days. > Eventually, I want to end up writing a steganography program, but for now I

Re: [Tutor] binary, ascii, steganography

2011-03-18 Thread Dave Angel
On 01/-10/-28163 02:59 PM, jaco erasmus wrote: Hi there, list The other day I got bored at work and decided to give this programming thing a try, since Rick Romero said it's becoming all the rage these days. Eventually, I want to end up writing a steganography program, but for now I am still an i

[Tutor] binary, ascii, steganography

2011-03-18 Thread jaco erasmus
Hi there, list The other day I got bored at work and decided to give this programming thing a try, since Rick Romero said it's becoming all the rage these days. Eventually, I want to end up writing a steganography program, but for now I am still an idiot playing around with text files, substituting