AutoHotkey Community

It is currently May 27th, 2012, 12:23 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: August 9th, 2009, 3:00 pm 
Offline

Joined: August 8th, 2009, 10:10 pm
Posts: 17
Sean wrote:
I now saw the linked page in the top post in this thread. Is that official implementation of AES in PHP?


I looked and compared it to this MSDN post. PHP script seems to be the same.


Okay I searched on web, and it is a library. AES can be implemented on PHP (mcrypt), but I can't use it because my domain maintainer didn't implement it.

I found the PHP "emulated" library here.

Now I do some tests.

Thank you very much, Sean!


EDIT:
I thought that, but now seems to be true:
Quote:
$plaintext will be padded with up to 16 additional bytes. Other AES implementations may or may not pad in the same manner.

I found this on library.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2009, 4:36 am 
Offline

Joined: October 9th, 2009, 4:32 am
Posts: 1
Sean wrote:
I now saw the linked page in the top post in this thread. Is that official implementation of AES in PHP? If so, I don't think you can make PHP and the AHK code used here compatible. Looks like you need the planned half-part of the codes which unfortunately has never been implemented in the script. You have to implement it yourself.

PHP seems to use its own key generation procedure. So, first translate that code into AHK. Then, to generate key handle with the data, use CryptImportKey instead of CryptDeriveKey currently used. BTW, even after that trouble, I can't guarantee to obtain the same result for both AHK and PHP. Maybe you have to translate the whole PHP's AES code into AHK.

The above phpclasses.org AES implementation is one of the most degenerate ones around. It's the slowest and it that's when it works.

Here's the best one I've found:

http://phpseclib.sourceforge.net/docume ... benchmarks

Fastest and the fact that it's used in a real-world situation (SSH) makes me confident that it implements AES correctly.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 19th, 2010, 4:40 am 
L-Cartinine wrote:
ok now i done it.


this is pretty ridiculous that you dont post the solution


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2010, 3:10 pm 
Offline

Joined: July 19th, 2010, 1:52 pm
Posts: 5
There is a working example? AHK script and PHP script


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2010, 10:13 pm 
Offline

Joined: July 19th, 2010, 1:52 pm
Posts: 5
I want to implement AES encrypt/decrypt on my AHK/PHP scripts.
Can someone help me, please?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: chaosad, Exabot [Bot], jrav and 14 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group