[Tutor] binary, ascii, steganography

Steven D'Aprano steve at pearwood.info
Sat Mar 19 07:32:35 CET 2011


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! (00000001 = a, 00000010 = b, ...)

 >>> int('01101110', 2)
110
 >>> chr(110)
'n'


Is that enough of a hint? :)



-- 
Steven


More information about the Tutor mailing list