PHP - creating encrypted files
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2448256/php-mcrypt-encrypting-decrypting-file">PHP Mcrypt - Encrypting / Decrypting file</a><br>
  <a href="http://stackoverflow.com/questions/10696450/how-to-encrypted-a-file-and-attachment-send-out-in-php">How to Encrypted a File and attachment send out in php?</a>  </p>
</blockquote>



<p>I wanted to create a script to run periodic SQL backups and send them to me via email. I would also like these backups to be encrypted and if possible compressed.</p>

<p>From what I've read, this can't be done with ZIP in PHP, but surely there is some other solution to encrypt (and later decrypt) the files?</p>
