PHP Classes

better AES implementation available

Recommend this page to a friend!

      TextBin  >  All threads  >  better AES implementation available  >  (Un) Subscribe thread alerts  
Subject:better AES implementation available
Summary:five times faster than the one you're using without mcrypt
Messages:1
Author:Union Trees
Date:2009-10-25 00:22:41
 

  1. better AES implementation available   Reply   Report abuse  
Picture of Union Trees Union Trees - 2009-10-25 00:22:41
I notice that you're using the AES implementation from http://www.movable-type.co.uk/scripts/aes-php.html. There's a far faster one available here:

phpseclib.sourceforge.net/

It's about five times faster than the implementation you're using, per this:

phpseclib.sourceforge.net/documenta ...

And that's when mcrypt isn't available. When it is available, my own benchmarking suggests that it's more than twenty times as fast. And fast means it's less of a resource hog.