Re: help to convert c++ fonction in python

2009-10-21 Thread geremy condra
On Wed, Oct 21, 2009 at 3:28 AM, Processor-Dev1l wrote: > On Oct 18, 8:13 am, Toff wrote: >> On 18 oct, 02:13, geremy condra wrote: >> >> >> >> > On Sat, Oct 17, 2009 at 7:57 PM, David Robinow wrote: >> > > On Sat, Oct 17, 2009 at 7:48 PM, geremy condra >> > > wrote: >> > >> For the love of b

Re: help to convert c++ fonction in python

2009-10-21 Thread Processor-Dev1l
On Oct 18, 8:13 am, Toff wrote: > On 18 oct, 02:13, geremy condra wrote: > > > > > On Sat, Oct 17, 2009 at 7:57 PM, David Robinow wrote: > > > On Sat, Oct 17, 2009 at 7:48 PM, geremy condra wrote: > > >> For the love of baby kittens, please, please, please tell me that > > >> you do not believe

Re: help to convert c++ fonction in python

2009-10-20 Thread Paul Rudin
Gary Herron writes: > geremy condra wrote: >> And always apply ROT13 twice for extra security. >> > +1 for "quote of the week" Even if it's at least 30 years old :) -- http://mail.python.org/mailman/listinfo/python-list

Re: help to convert c++ fonction in python

2009-10-20 Thread Gary Herron
geremy condra wrote: On Mon, Oct 19, 2009 at 2:25 AM, Tim Roberts wrote: You wrote: For the love of baby kittens, please, please, please tell me that you do not believe this securely encrypts your data. The original poster asked to have two C++ functions converted to Python.

Re: help to convert c++ fonction in python

2009-10-20 Thread Aahz
In article , Mel wrote: >Aahz wrote: >> In article , >> geremy condra wrote: >>> >>>And always apply ROT13 twice for extra security. >> >> Can't you tell? I'm already doing that! > >Just don't flaunt the export restrictions by using ROT52. s/flaunt/flout/ HTH, HAND ;-) -- Aahz (a...@pytho

Re: help to convert c++ fonction in python

2009-10-20 Thread geremy condra
On Tue, Oct 20, 2009 at 3:54 PM, Aahz wrote: > In article , > geremy condra   wrote: >> >>And always apply ROT13 twice for extra security. > > Can't you tell?  I'm already doing that! > -- > Aahz (a...@pythoncraft.com)           <*>         http://www.pythoncraft.com/ Sorry, couldn't read it thro

Re: help to convert c++ fonction in python

2009-10-20 Thread Mel
Aahz wrote: > In article , > geremy condra wrote: >> >>And always apply ROT13 twice for extra security. > > Can't you tell? I'm already doing that! Just don't flaunt the export restrictions by using ROT52. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: help to convert c++ fonction in python

2009-10-20 Thread Aahz
In article , geremy condra wrote: > >And always apply ROT13 twice for extra security. Can't you tell? I'm already doing that! -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ Member of the Groucho Marx Fan Club -- http://mail.python.org/mailman/listinfo/pyth

Re: help to convert c++ fonction in python

2009-10-19 Thread geremy condra
On Tue, Oct 20, 2009 at 2:06 AM, Robert Kern wrote: > Steven D'Aprano wrote: >> >> On Sat, 17 Oct 2009 19:48:46 -0400, geremy condra wrote: >> >>> For the love of baby kittens, please, please, please tell me that you do >>> not believe this securely encrypts your data. >> >> Surely that depends on

Re: help to convert c++ fonction in python

2009-10-19 Thread Robert Kern
Steven D'Aprano wrote: On Sat, 17 Oct 2009 19:48:46 -0400, geremy condra wrote: For the love of baby kittens, please, please, please tell me that you do not believe this securely encrypts your data. Surely that depends on your threat model? Well, let's let the OP off the hook immediately. H

Re: help to convert c++ fonction in python

2009-10-19 Thread Steven D'Aprano
On Sat, 17 Oct 2009 19:48:46 -0400, geremy condra wrote: > For the love of baby kittens, please, please, please tell me that you do > not believe this securely encrypts your data. Surely that depends on your threat model? If you think that the NSA is interested in your data, then no, obviously

Re: help to convert c++ fonction in python

2009-10-19 Thread geremy condra
On Mon, Oct 19, 2009 at 2:25 AM, Tim Roberts wrote: > You wrote: >> >>For the love of baby kittens, please, please, please tell me that >>you do not believe this securely encrypts your data. > > The original poster asked to have two C++ functions converted to Python.   > That's what I did, using t

Re: help to convert c++ fonction in python

2009-10-18 Thread Tim Roberts
You wrote: > >For the love of baby kittens, please, please, please tell me that >you do not believe this securely encrypts your data. The original poster asked to have two C++ functions converted to Python. That's what I did, using the same names as the original. I neither know nor care how th

Re: help to convert c++ fonction in python

2009-10-18 Thread Lie Ryan
Thomas wrote: If you change your last line from: print s to: print u you'll get different results :) if you change: s1 = base64.b64decode( s ) into s = base64.b64decode( s ) you'll get the same result again. -- http://mail.python.org/mailman/listinfo/python-list

Re: help to convert c++ fonction in python

2009-10-18 Thread Thomas
If you change your last line from: print s to: print u you'll get different results :) TC -- http://mail.python.org/mailman/listinfo/python-list

Re: help to convert c++ fonction in python

2009-10-17 Thread Toff
On 18 oct, 02:13, geremy condra wrote: > On Sat, Oct 17, 2009 at 7:57 PM, David Robinow wrote: > > On Sat, Oct 17, 2009 at 7:48 PM, geremy condra wrote: > >> For the love of baby kittens, please, please, please tell me that > >> you do not believe this securely encrypts your data. > >  Yeah, I t

help to convert c++ fonction in python

2009-10-17 Thread geremy condra
On Sat, Oct 17, 2009 at 7:57 PM, David Robinow wrote: > On Sat, Oct 17, 2009 at 7:48 PM, geremy condra wrote: >> For the love of baby kittens, please, please, please tell me that >> you do not believe this securely encrypts your data. >  Yeah, I think it's pretty good. > Can you do better? > Tri

Re: help to convert c++ fonction in python

2009-10-17 Thread geremy condra
On Sat, Oct 17, 2009 at 6:15 PM, Tim Roberts wrote: > Toff wrote: >> >>I'm trying to convert  2 c++ functions  in python >> >>they come from wpkg client >>https://wpkg.svn.sourceforge.net/svnroot/wpkg/wpkg-client/Sources/Components/XmlSettings.cpp >> >>they are >>CString CXmlSettings::Crypt(CStri

Re: help to convert c++ fonction in python

2009-10-17 Thread Tim Roberts
Toff wrote: > >I'm trying to convert 2 c++ functions in python > >they come from wpkg client >https://wpkg.svn.sourceforge.net/svnroot/wpkg/wpkg-client/Sources/Components/XmlSettings.cpp > >they are >CString CXmlSettings::Crypt(CString str) >CString CXmlSettings::Decrypt(CString str) > >CAn some

Re: help to convert c++ fonction in python

2009-10-17 Thread Tim Roberts
Toff wrote: > >I'm trying to convert 2 c++ functions in python > >they come from wpkg client >https://wpkg.svn.sourceforge.net/svnroot/wpkg/wpkg-client/Sources/Components/XmlSettings.cpp > >they are >CString CXmlSettings::Crypt(CString str) >CString CXmlSettings::Decrypt(CString str) > >CAn some

help to convert c++ fonction in python

2009-10-17 Thread Toff
hello I'm trying to convert 2 c++ functions in python they come from wpkg client https://wpkg.svn.sourceforge.net/svnroot/wpkg/wpkg-client/Sources/Components/XmlSettings.cpp they are CString CXmlSettings::Crypt(CString str) CString CXmlSettings::Decrypt(CString str) CAn someone help me? i