title: What is the maximum size allowed data (text fo be encripted) by mcrypt_generic() of php?
body: <p>I have a string to encrypt and then decrypt the encrypted string. 
  I can do this using the following function of php</p>
  
  <pre><code>   string mcrypt_generic ( resource $td , string $data );
  </code></pre>
  
  <p>Successfully if <strong>$data</strong> size is <strong>60MB</strong> . But I need to encrypt/decrypt file larger then 1GB. For larger database I got **Memory out of range ** error. I have the following configuration,</p>
  
  <pre><code> ini_set('memory_limit', '2048M'); // 2GB
  </code></pre>
  
  <p>But got same error.
  Please suggest how can I do this.</p>
  
  <p>Thanks.</p>