|
Posted by David T. Ashley on 05/16/07 15:50
Is anyone aware of any already-written code I can use that implements
AES-192 in PHP?
BACKGROUND:
I don't have mcrypt compiled into my PHP, and I have an application where I
need to encrypt and decrypt 128 bits (1 block only) using AES-192.
My plan is to implement AES in PHP (directly, as PHP code).
I did a speed test with PHP, and a loop with 10,000 iterations, with each
iteration containing several bitwise manipulations and random number
generations, required 0.11 seconds to complete on my server. I'm sure that
one block of AES is less CPU cycles than that, so the upper limit on the
server time to do one block should be 0.11 seconds of server time. This is
OK for my application.
If somebody has code already, this would be easier ...
Thanks.
--
David T. Ashley (dta@e3ft.com)
http://www.e3ft.com (Consulting Home Page)
http://www.dtashley.com (Personal Home Page)
http://gpl.e3ft.com (GPL Publications and Projects)
Navigation:
[Reply to this message]
|