Cross-Language Encryption: Python/Java

Ype Kingma ykingma at accessforall.nl
Fri Apr 30 04:53:43 EDT 2004


John J. Lee wrote:

> 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.

Another option is a ssh tunnel from each client to your server. If this
is feasible in your environment, it has the big advantage that your code
won't even now that the communication is encrypted, only the client
would have to connect to the tunnel.

Perhaps someone else can comment on secure sockets. Java has them,
and I'd expect your server to know how to deal with them, too.

I'd also ask on a Zope list.

Good luck,
Ype




More information about the Python-list mailing list