Re: python + php encrypt/decrypt

2011-06-07 Thread Peter Irbizon
Hello Ian, thanks, I found another php script but it is not working as well :/ What am I doing wrong? And I have another question too: when I use text for encoding "Text for 1" and "Text for 11" the first letters of encoded strings are the same in both strings? here is my py: # -*- coding: utf-8 -

Re: python + php encrypt/decrypt

2011-06-06 Thread Ian Kelly
On Mon, Jun 6, 2011 at 4:19 PM, miamia wrote: > php I am trying to use is here: > http://code.google.com/p/antares4pymes/source/browse/trunk/library/System/Crypt/AES.php?r=20 That library does not appear to be doing CBC as far as I can tell. Maybe they will agree if you use EBC instead? > BLOCK_

Re: python + php encrypt/decrypt

2011-06-06 Thread miamia
On Jun 6, 7:41 pm, geremy condra wrote: > On Sun, Jun 5, 2011 at 3:34 AM, Peter Irbizon wrote: > > Hello, thanks, Unfortunatelly I don't understand how xml should resolve my > > issue. My problem is: > > I am trying to use aes256 cbc on python and php to decrypt "textstring". But > > results are

Re: python + php encrypt/decrypt

2011-06-06 Thread geremy condra
On Sun, Jun 5, 2011 at 3:34 AM, Peter Irbizon wrote: > Hello, thanks, Unfortunatelly I don't understand how xml should resolve my > issue. My problem is: > I am trying to use aes256 cbc on python and php to decrypt "textstring". But > results are not the same in php and python. Any idea why? passw

Re: python + php encrypt/decrypt

2011-06-05 Thread Peter Irbizon
Hello, thanks, Unfortunatelly I don't understand how xml should resolve my issue. My problem is: I am trying to use aes256 cbc on python and php to decrypt "textstring". But results are not the same in php and python. Any idea why? password and iv is the same so I don't know where is the problem. I

Re: python + php encrypt/decrypt

2011-06-04 Thread hidura
Use xml to pass the encrypt text. On , Peter Irbizon wrote: Hello, I would like to encrypt text in python and decrypt it in my PHP script. I tried to use pycrypto and some aes php scripts but the results are not the same. Please, is there any example (the best way source codes) how to

python + php encrypt/decrypt

2011-06-04 Thread Peter Irbizon
Hello, I would like to encrypt text in python and decrypt it in my PHP script. I tried to use pycrypto and some aes php scripts but the results are not the same. Please, is there any example (the best way source codes) how to do this in python and PHP? -- http://mail.python.org/mailman/listinfo/p

python + php encrypt/decrypt

2011-06-04 Thread miamia
Hello, I would like to encrypt text in python and decrypt it in my PHP script. I tried to use pycrypto and some aes php scripts but the results are not the same. Please, is there any example (the best way source codes) how to do this in python and PHP? many thanks -- http://mail.python.org/mailman