Re: Cross-Language Encryption: Python/Java

From: John J. Lee (jjl_at_pobox.com)
Date: 04/29/04


Date: 29 Apr 2004 22:37:42 +0100

Daniel Orner <cs993442@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



Relevant Pages