Cross-Language Encryption: Python/Java

John J. Lee jjl at pobox.com
Thu Apr 29 17:37:42 EDT 2004


Daniel Orner <cs993442 at cs.yorku.ca> writes:

> 	I'm working on a project that consists of a Java application
> on the desktop, and a server with Python CGI code. I'm trying to find
> an encryption algorithm, which would let me send encrypted information
> to the server, to work identically in both Python and
> Java. (I.e. which would let me encrypt data in Java, send it to the
> Python server, and decrypt it there.) For various reasons, I don't
> want to use the built-in Java encryption suite.
[...]

Use Jython.  Whether it makes sense to put Jython on server or client
probably depends on details that only you know.


> 	Does anyone have a good idea about what my options might be
> here? Truthfully I don't know a whole lot about encryption algorithms,
> so if you can point me to something I can adapt without having to
> understand all the niggling details, that would really be great.
[...]

Yeah, rolling your own encryption code is generally regarded to be a
bad idea.


John



More information about the Python-list mailing list