RSA encryption results in server execution timeout

Posted by Nilambari on Stack Overflow See other posts from Stack Overflow or by Nilambari
Published on 2010-04-30T08:56:32Z Indexed on 2010/04/30 10:07 UTC
Read the original article Hit count: 394

Hi,

I am using PHP Crypt_RSA (http://pear.php.net/package/Crypt_RSA) for encrypting and decrypting the contents. Contents are of 1kb size. Following are the results:


  1. keylength = 1024
  2. Encryption function takes time: 225 secs

  1. keylength = 2048
  2. Encryption function takes time: 115 secs

I need to reduce this execution time as most of the live apache servers have 120 sec limit for execution time. How to reduce this execution time? RSA alorithm docs says the only 1024 - 2048 keys are generated. I ACTUALLY tried to generate larger key, but it always results in execution timeout.

How do i work on reducing encryption - decryption execution time?

Thanks, Nila

© Stack Overflow or respective owner

Related posts about rsa

Related posts about encryption