base64 interoperability

Christopher J. Bottaro cjbottaro at alumni.cs.utexas.edu
Fri Apr 8 14:50:39 EDT 2005


Christopher J. Bottaro wrote:

> Python's base64 module encodes and decodes differently than PHP's. 
> Python's docs says that it ahere's to RFC1521 (sept 1993), while PHP's
> adheres to
> RFC2045 (nov 1996).  Is there any Python module that uses the new
> standard? Why is Python using the old standard anyways?
> 
> Thanks.

Forgot to mention that I'm using 2.3.  2.4 says it adheres to yet a
different RFC.  Anyone know if 2.4 will encode/decode base64 in such a
manner that it will work with PHP (5.0.4)?

Thanks.




More information about the Python-list mailing list