Re: RSA cryptography between Python and Java

2009-07-28 Thread M.-A. Lemburg
Rob Knop wrote: > 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 co

Re: RSA cryptography between Python and Java

2009-07-27 Thread Piet van Oostrum
> Michael Ströder (MS) wrote: >MS> Piet van Oostrum wrote: >>> Please note that the text to be encrypted must be smaller than the key >>> size (at least 11 bytes smaller). You shouldn't encrypt large data with >>> RSA anyway: it is too slow. Normally you would encrypt a session key >>> with R

Re: RSA cryptography between Python and Java

2009-07-27 Thread Michael Ströder
Piet van Oostrum wrote: > Please note that the text to be encrypted must be smaller than the key > size (at least 11 bytes smaller). You shouldn't encrypt large data with > RSA anyway: it is too slow. Normally you would encrypt a session key > with RSA and encrypt the data with the session key usin

Re: RSA cryptography between Python and Java

2009-07-27 Thread Piet van Oostrum
> Paul Rubin (PR) wrote: >PR> Rob Knop writes: >>> Are there any python libraries that will take a public key in this >>> format and do RSA encoding on it? >PR> Try www.trevp.com/tlslite I have looked into tlslite and found no easy way to do this. Maybe I over

Re: RSA cryptography between Python and Java

2009-07-25 Thread Paul Rubin
Rob Knop 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

Re: RSA cryptography between Python and Java

2009-07-25 Thread Rob Knop
Paul Rubin 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 wh

Re: RSA cryptography between Python and Java

2009-07-25 Thread Paul Rubin
Rob Knop writes: > Are there any python libraries that will take a public key in this > format and do RSA encoding on it? Try www.trevp.com/tlslite -- http://mail.python.org/mailman/listinfo/python-list

RSA cryptography between Python and Java

2009-07-25 Thread Rob Knop
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. A

Re: Trying to choose between python and java

2007-07-20 Thread James Matthews
You can always use jython. ;) On 7/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: On Sun, 15 Jul 2007 at 22:28:08 -0700, Alex Martelli wrote: > James T. Dennis <[EMAIL PROTECTED]> wrote: >... > > You can start writing all your code now as: print() --- calling > > the statement as if

Re: Trying to choose between python and java

2007-07-20 Thread rvu44vs02
On Sun, 15 Jul 2007 at 22:28:08 -0700, Alex Martelli wrote: > James T. Dennis <[EMAIL PROTECTED]> wrote: >... > > You can start writing all your code now as: print() --- calling > > the statement as if it were a function. Then you're future Python > > ...except that your output format will

Re: Trying to choose between python and java

2007-07-16 Thread Bruno Desthuilliers
Anthony Irwin a écrit : > Hi All, > (snip) > Also does anyone else have any useful comments about python vs java > without starting a flame war. I guess I'd better not answer, then !-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to choose between python and java

2007-07-15 Thread Alex Martelli
James T. Dennis <[EMAIL PROTECTED]> wrote: ... > You can start writing all your code now as: print() --- calling > the statement as if it were a function. Then you're future Python ...except that your output format will thereby become disgusting...: >>> name = 'Alex' >>> print 'Hello', name

Re: Trying to choose between python and java

2007-07-15 Thread Alex Popescu
I read in this thread lots of different (hopefully personal) opinions on the question of Java vs Python, so I thought I will post mines too (with the amendment that I am a Java guy, spending there more than 10 years). I don't think you can do a performance comparison upfront (without having it com

Re: Trying to choose between python and java

2007-07-13 Thread James T. Dennis
Hamilton, William <[EMAIL PROTECTED]> wrote: >> From: Beliavsky > On May 15, 1:30 am, Anthony Irwin <[EMAIL PROTECTED]> wrote: >> >>> #5 someone said that they used to use python but stopped because the >>> language changed or made stuff depreciated (I can fully remember >>> which) and old code

Re: Trying to choose between python and java

2007-05-18 Thread Paddy
On May 16, 2:21 am, Anthony Irwin <[EMAIL PROTECTED]> wrote: > Hi All, > > Thanks to all that replied. > > I saw on the python site a slide from 1999 that said that python was > slower then java but faster to develop with is python still slower > then java? Short answer: It might be. Long answer:

Re: Trying to choose between python and java

2007-05-17 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Cameron Laird wrote: >> In article <[EMAIL PROTECTED]>, >> Terry Reedy <[EMAIL PROTECTED]> wrote: >>> "Anthony Irwin" <[EMAIL PROTECTED]> wrote in message >>> news:[EMAIL PROTECTED] >> . >> . >> . >>> | #5 som

Re: Trying to choose between python and java

2007-05-16 Thread [EMAIL PROTECTED]
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > Terry Reedy <[EMAIL PROTECTED]> wrote: > > > >"Anthony Irwin" <[EMAIL PROTECTED]> wrote in message > >news:[EMAIL PROTECTED] > . > . > . > >| #5 someone said that they used to

Re: Trying to choose between python and java

2007-05-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul Melis <[EMAIL PROTECTED]> wrote: . . . >your program comes out on the other platforms. You could use a GUI >toolkit that draws its own widgets instead of one that uses the native >control

Re: Trying to choose between python and java

2007-05-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul Melis <[EMAIL PROTECTED]> wrote: >Anthony Irwin wrote: >> Hi All, >> >> I am currently trying to decide between using python or java and have a >> few quick questions about python that you may be able to help with. >> >> #1 Does python have something like ja

Re: Trying to choose between python and java

2007-05-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Terry Reedy <[EMAIL PROTECTED]> wrote: > >"Anthony Irwin" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] . . . >| #5 someone said that they used to use python but stopped because t

Re: Trying to choose between python and java

2007-05-16 Thread Matimus
> I tend to use the shebang #!/usr/bin/env python in my scripts so far > but I imagine that having that would not work on say windows. Or is > there some kind of file extension association for people running > windows instead of the shebang? The shebang is ignored in Windows (as far as I know). Th

Re: Trying to choose between python and java

2007-05-16 Thread Aahz
In article <[EMAIL PROTECTED]>, Aahz <[EMAIL PROTECTED]> wrote: >In article <[EMAIL PROTECTED]>, >Anthony Irwin <[EMAIL PROTECTED]> wrote: >> >>#5 someone said that they used to use python but stopped because the >>language changed or made stuff depreciated (I can fully remember >>which) and old

Re: Trying to choose between python and java

2007-05-16 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > On May 15, 5:16 pm, Bruno Desthuilliers > <[EMAIL PROTECTED]> wrote: >> Beliavsky a écrit : >> >> >> >>> On May 15, 1:30 am, Anthony Irwin <[EMAIL PROTECTED]> wrote: >>> #5 someone said that they used to use python but stopped because the language changed or

Re: Trying to choose between python and java

2007-05-16 Thread Michael Bentley
On May 15, 2007, at 8:21 PM, Anthony Irwin wrote: > I saw on the python site a slide from 1999 that said that python was > slower then java but faster to develop with is python still slower > then java? I guess that all depends on the application. Whenever I have a choice between using someth

Re: Trying to choose between python and java

2007-05-15 Thread Anthony Irwin
Hi All, Thanks to all that replied. I noticed that someone said that the way you used regular expressions changed at some point. That is probably what upset the person I was talking to about python they are a huge perl fan and use regular expressions heavily. The reason for asking about the .

RE: Trying to choose between python and java

2007-05-15 Thread Delaney, Timothy (Tim)
Duncan Booth wrote: > "Hamilton, William " <[EMAIL PROTECTED]> wrote: > >> >> No, they'll work just fine. They just won't work with Python 3. >> It's not like the Python Liberation Front is going to hack into your >> computer in the middle of the night and delete you 2.x installation. > > Is

Re: Trying to choose between python and java

2007-05-15 Thread [EMAIL PROTECTED]
On May 15, 5:16 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Beliavsky a écrit : > > > > > On May 15, 1:30 am, Anthony Irwin <[EMAIL PROTECTED]> wrote: > > > > > >>#5 someone said that they used to use python but stopped because the > >>language changed or made stuff depreciated (I can ful

Re: Trying to choose between python and java

2007-05-15 Thread Bruno Desthuilliers
Beliavsky a écrit : > On May 15, 1:30 am, Anthony Irwin <[EMAIL PROTECTED]> wrote: > > > >>#5 someone said that they used to use python but stopped because the >>language changed or made stuff depreciated (I can fully remember >>which) and old code stopped working. Is code written today likely t

Re: Trying to choose between python and java

2007-05-15 Thread Aahz
In article <[EMAIL PROTECTED]>, Anthony Irwin <[EMAIL PROTECTED]> wrote: > >#5 someone said that they used to use python but stopped because the >language changed or made stuff depreciated (I can fully remember >which) and old code stopped working. Is code written today likely to >still work in

Re: Trying to choose between python and java

2007-05-15 Thread Ant
On May 15, 9:17 am, Ant <[EMAIL PROTECTED]> wrote: ... > I can't remember what it is I use - I haven't got access to my server > at the moment... But look in the cheese shop - I'm fairly sure it was > from there. I'll post details if I remember. Alternatively this looks > good (though I haven't tri

RE: Trying to choose between python and java

2007-05-15 Thread Duncan Booth
"Hamilton, William " <[EMAIL PROTECTED]> wrote: > > No, they'll work just fine. They just won't work with Python 3. It's > not like the Python Liberation Front is going to hack into your > computer in the middle of the night and delete you 2.x installation. Is that a breakaway group from the P

Re: Trying to choose between python and java

2007-05-15 Thread Robert Kern
sturlamolden wrote: > On May 15, 7:29 pm, Beliavsky <[EMAIL PROTECTED]> wrote: > >> print "Hello, world." >> >> a substantial fraction of Python programs in existence, including all >> of my programs, will be broken. Draw your own conclusions. > > In the vent that your Python 2.x install will be

Re: Trying to choose between python and java

2007-05-15 Thread sturlamolden
On May 15, 7:29 pm, Beliavsky <[EMAIL PROTECTED]> wrote: > print "Hello, world." > > a substantial fraction of Python programs in existence, including all > of my programs, will be broken. Draw your own conclusions. In the vent that your Python 2.x install will be fubar and suddenly stop working

Re: Trying to choose between python and java

2007-05-15 Thread Matimus
> #3 Is there any equivalent to jfreechart and jfreereport > (http://www.jfree.orgfor details) in python. I haven't used either extensively but you might check out ReportLab for report generation (http://www.reportlab.org). And MatPlotLib for creating plots, charts and graphs (http://matplotlib.so

RE: Trying to choose between python and java

2007-05-15 Thread Hamilton, William
> From: Beliavsky On May 15, 1:30 am, Anthony Irwin <[EMAIL PROTECTED]> wrote: > > > > > #5 someone said that they used to use python but stopped because the > > language changed or made stuff depreciated (I can fully remember > > which) and old code stopped working. Is code written today likely

Re: Trying to choose between python and java

2007-05-15 Thread Beliavsky
On May 15, 1:30 am, Anthony Irwin <[EMAIL PROTECTED]> wrote: > #5 someone said that they used to use python but stopped because the > language changed or made stuff depreciated (I can fully remember > which) and old code stopped working. Is code written today likely to > still work in 5+ years o

Re: Trying to choose between python and java

2007-05-15 Thread sturlamolden
On May 15, 7:30 am, Anthony Irwin <[EMAIL PROTECTED]> wrote: > #1 Does python have something like javas .jar packages. Yes. .egg files. > #2 What database do people recommend for using with python that is > easy to distribute across linux, mac, windows. Depends on your needs: 1. Berkely DB -

Re: Trying to choose between python and java

2007-05-15 Thread Kirk Job Sluder
Anthony Irwin <[EMAIL PROTECTED]> writes: > #1 Does python have something like javas .jar packages. A jar file > contains all the program files and you can execute the program with > java -jar program.jar Python does this with eggs and distutils that copy your files into the proper location. For

Re: Trying to choose between python and java

2007-05-15 Thread Paul Boddie
On 15 May, 07:30, Anthony Irwin <[EMAIL PROTECTED]> wrote: > > I am currently trying to decide between using python or java and have > a few quick questions about python that you may be able to help with. > > #1 Does python have something like javas .jar packages. A jar file > contains all the prog

Re: Trying to choose between python and java

2007-05-15 Thread Nick Craig-Wood
Anthony Irwin <[EMAIL PROTECTED]> wrote: > #4 If I write a program a test it with python-wxgtk2.6 under linux are > the program windows likely to look right under windows and mac? wx adopts the native look and feel for the platform. I've used it under linux and windows where it looks fine! I'

Re: Trying to choose between python and java

2007-05-15 Thread Gabriel Genellina
En Tue, 15 May 2007 05:43:36 -0300, Bruno Desthuilliers <[EMAIL PROTECTED]> escribió: >> Is code written today likely to still work >> in 5+ years or do they depreciate stuff and you have to update? > > I still use code written more than five years ago. Just as an example, PIL (Python Imaging L

Re: Trying to choose between python and java

2007-05-15 Thread Bruno Desthuilliers
Steven Howe a écrit : (snip) >> > Flame war? Here amongst all the reasonable adults programmers? It never > happens. > Lol ! +1 QOTW -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to choose between python and java

2007-05-15 Thread Bruno Desthuilliers
Anthony Irwin a écrit : > Hi All, > > I am currently trying to decide between using python or java and have a > few quick questions about python that you may be able to help with. > > #1 Does python have something like javas .jar packages. A jar file > contains all the program files and you can

Re: Trying to choose between python and java

2007-05-15 Thread half . italian
>> #3 Is there any equivalent to jfreechart and jfreereport >> (http://www.jfree.org for details) in python. ChartDirector http://www.advsofteng.com/download.html Again, not free for commercial use, but very versatile. ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to choose between python and java

2007-05-15 Thread Ant
On May 15, 6:30 am, Anthony Irwin <[EMAIL PROTECTED]> wrote: > #1 Does python have something like javas .jar packages. A jar file > contains all the program files and you can execute the program with > java -jar program.jar As someone else has said, Python has eggs: http://peak.telecommunity.com/

Re: Trying to choose between python and java

2007-05-15 Thread Paul Melis
Anthony Irwin wrote: > Hi All, > > I am currently trying to decide between using python or java and have a > few quick questions about python that you may be able to help with. > > #1 Does python have something like javas .jar packages. A jar file > contains all the program files and you can ex

Re: Trying to choose between python and java

2007-05-15 Thread Steven Howe
Anthony Irwin wrote: > Hi All, > > I am currently trying to decide between using python or java and have > a few quick questions about python that you may be able to help with. > > #1 Does python have something like javas .jar packages. A jar file > contains all the program files and you can exec

Re: Trying to choose between python and java

2007-05-15 Thread Terry Reedy
"Anthony Irwin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | #2 What database do people recommend for using with python that is | easy to distribute across linux, mac, windows. Check out the sqlite3 module. (But I have not used it yet). | #5 someone said that they used to use

Re: Trying to choose between python and java

2007-05-14 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Anthony Irwin wrote: > #1 Does python have something like javas .jar packages. A jar file > contains all the program files and you can execute the program with > java -jar program.jar There are .egg files but usually distributing a program consisting of several files isn

Trying to choose between python and java

2007-05-14 Thread Anthony Irwin
Hi All, I am currently trying to decide between using python or java and have a few quick questions about python that you may be able to help with. #1 Does python have something like javas .jar packages. A jar file contains all the program files and you can execute the program with java -jar p

Re: Python and Java

2007-04-06 Thread Steve Holden
Ed Jensen wrote: > Steve Holden <[EMAIL PROTECTED]> wrote: >> Ed Jensen wrote: >>> Steve Holden <[EMAIL PROTECTED]> wrote: Jython is an implementation of Python that compiles to Java bytecode, but at the moment there's some version lag so it won't handle the mos recent language enh

Re: Python and Java

2007-04-06 Thread Ed Jensen
Steve Holden <[EMAIL PROTECTED]> wrote: > Ed Jensen wrote: >> Steve Holden <[EMAIL PROTECTED]> wrote: >>> Jython is an implementation of Python that compiles to Java bytecode, >>> but at the moment there's some version lag so it won't handle the mos >>> recent language enhancements. Probably wort

Re: Python and Java

2007-04-05 Thread Steve Holden
Ed Jensen wrote: > Steve Holden <[EMAIL PROTECTED]> wrote: >> Jython is an implementation of Python that compiles to Java bytecode, >> but at the moment there's some version lag so it won't handle the mos >> recent language enhancements. Probably worth a look, though. >> >>http://www.jython.o

Re: Python and Java

2007-04-05 Thread Ed Jensen
Steve Holden <[EMAIL PROTECTED]> wrote: > Jython is an implementation of Python that compiles to Java bytecode, > but at the moment there's some version lag so it won't handle the mos > recent language enhancements. Probably worth a look, though. > >http://www.jython.org/ Does Jython compil

Re: Python and Java

2007-04-05 Thread Goldfish
On Apr 5, 7:18 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Sreelatha G wrote: > > Hi > > >I am new to python .I need your help in solving my problem. > >Is there any way to call python files in a java file .How is it possible? > Your other option is to utilize a system exec call, and try

Re: Python and Java

2007-04-05 Thread Steve Holden
Sreelatha G wrote: > Hi > >I am new to python .I need your help in solving my problem. >Is there any way to call python files in a java file .How is it possible? > Jython is an implementation of Python that compiles to Java bytecode, but at the moment there's some version lag so it won't

Python and Java

2007-04-04 Thread Sreelatha G
Hi I am new to python .I need your help in solving my problem. Is there any way to call python files in a java file .How is it possible? Thanks Sreelatha -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Java

2006-03-07 Thread Harry George
"JKPeck" <[EMAIL PROTECTED]> writes: > Suppose you have an application written in Java, and you want to enable > other applications or processes written in Python to communicate with > it, i.e., to use Python as a scripting language for the application. > On Windows you could do this with COM and

Re: Python and Java

2006-03-07 Thread Diez B. Roggisch
JKPeck wrote: > Suppose you have an application written in Java, and you want to enable > other applications or processes written in Python to communicate with > it, i.e., to use Python as a scripting language for the application. > On Windows you could do this with COM and various addons such as

Re: Python and Java

2006-03-07 Thread JKPeck
Thanks for these suggestions. To be clear, we already have a Python 2.4 minimum requirement for other reasons, and we are looking for a long-term solution so that as Python advances, the scripting solution can keep up in a timely way. Since the Java code is for a very large, complex application,

Re: Python and Java

2006-03-06 Thread Ravi Teja
For most purposes Jython 2.1 is just fine. The lack of recent features is not a show stopper. What do you need metaclasses? decorators? BTW, there is Jython 2.2 as an alpha release. There are a number of ways you can use Java code through Python. Use JPype to start a Java VM http://jpype.sourcefo

Re: Python and Java

2006-03-06 Thread Kent Johnson
JKPeck wrote: > Suppose you have an application written in Java, and you want to enable > other applications or processes written in Python to communicate with > it, i.e., to use Python as a scripting language for the application. > On Windows you could do this with COM and various addons such as >

Re: Python and Java

2006-03-06 Thread Paul Rubin
"JKPeck" <[EMAIL PROTECTED]> writes: > Suppose you have an application written in Java, and you want to enable > other applications or processes written in Python to communicate with > it, i.e., to use Python as a scripting language for the application. > On Windows you could do this with COM and v

Python and Java

2006-03-06 Thread JKPeck
Suppose you have an application written in Java, and you want to enable other applications or processes written in Python to communicate with it, i.e., to use Python as a scripting language for the application. On Windows you could do this with COM and various addons such as J-Integra and Mark Hamm