in reply to ascii to binary

You might want to consider using of the the MD5 modules (MD5 or MD5 Digest). There will be fewer corner cases to bite you.

----
I Go Back to Sleep, Now.

OGB