write Unicode to sys.out.write without access to sitecustomize.py
I would like to tell the system that it's OK to write Unicode to sys.out and sys.err. However, I'm doing this in a CGI script where I don't have access to the system directories, and as such can't use sys.setdefaultencoding in sitecustomize.py. Is there a way to make this happen? -- --Rob Knop E-mail:rk...@pobox.com Home Page: http://www.pobox.com/~rknop/ Blog: http://www.sonic.net/~rknop/blog/ -- http://mail.python.org/mailman/listinfo/python-list
RSA cryptography between Python and Java
I've created an RSA key in Java. I have exported the public key by making it into a X509EncodedKeySpec and spitting out the result of getEncoded(). I want to use this public key to encode something in python that I will send to Java, and then decode in Java with the corresponding private key. Are there any python libraries that will take a public key in this format and do RSA encoding on it? -- --Rob Knop E-mail:rk...@pobox.com Home Page: http://www.pobox.com/~rknop/ Blog: http://www.sonic.net/~rknop/blog/ -- http://mail.python.org/mailman/listinfo/python-list
Re: RSA cryptography between Python and Java
Paul Rubin http://phr...@nospam.invalid writes: www.trevp.com/tlslite Thanks, but that looks like a library for setting up a secure connection between two ends. What I need is the ability to encrypt with a public key in Python, where that public key was generated in Java as described, and where the cipertext can later be decrypted with the corresponding secret key in Java. -- --Rob Knop E-mail:rk...@pobox.com Home Page: http://www.pobox.com/~rknop/ Blog: http://www.sonic.net/~rknop/blog/ -- http://mail.python.org/mailman/listinfo/python-list