<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 21 May 2013 13:50:07 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Encrypting uploaded files in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15402</guid>
      <link>http://www.phpdeveloper.org/news/15402</link>
      <description><![CDATA[<p>
In <a href="http://www.codediesel.com/php/encrypting-uploaded-files-in-php/">this new post</a> to his blog <i>Sameer Borate</i> looks at a method he's come up with to encrypt files uploaded into your application with the help of the <a href="http://framework.zend.com/manual/en/zend.filter.set.html">Zend_Filter</a> component of the Zend Framework.
</p>
<blockquote>
As earlier I'd encountered Zends wonderful <a href="http://framework.zend.com/manual/en/zend.filter.set.html">Zend_Filter</a> class, I decided to go with it and use the Zend_Filter_Encrypt and Zend_Filter_Decrypt to accomplish the work. The Zend_Filter component provides a set of common useful data filters, among which are the encryption filters. Although my project was not developed in Zend, I could easily integrate the required classes in the code. Note that Zend has a great upload library, <a href="http://framework.zend.com/manual/en/zend.file.transfer.introduction.html">Zend_File_Transfer</a>, that lets you easily manage file uploading and also encryption, but as I already had the upload code tested, I decided to just add the encryption part.
</blockquote>
<p>
He includes the step-by-step process to get everything you need and which files you'll need to have included from the framework to make things work. He includes code for both encrypting and decrypting the file information as well as hints on selecting an algorithm and a random initialization vector. You can <a href="http://www.codediesel.com/downloads/encrypt">download the complete source</a> if you want to jump right in.
</p>]]></description>
      <pubDate>Tue, 09 Nov 2010 09:43:13 -0600</pubDate>
    </item>
  </channel>
</rss>
