<?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>Sun, 19 May 2013 08:59:51 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[P&aacute;draic Brady: Predicting Random Numbers In PHP - It's Easier Than You Think!]]></title>
      <guid>http://www.phpdeveloper.org/news/19364</guid>
      <link>http://www.phpdeveloper.org/news/19364</link>
      <description><![CDATA[<p>
<i>P&aacute;draic Brady</i> has a new post to his site about <a href="http://blog.astrumfutura.com/2013/03/predicting-random-numbers-in-php-its-easier-than-you-think/">"randomness" in PHP</a> and how, depending on the method used, you might not be as random as you think.
</p>
<blockquote>
The <a href="http://framework.zend.com/">Zend Framework</a> team recently released versions 2.0.8 and 2.1.4 to address a number of potential security issues <a href="http://framework.zend.com/security/advisory/ZF2013-02">including advisory ZF2013-02</a> "Potential Information Disclosure and Insufficient Entropy vulnerabilities in ZendMathRand and ZendValidateCsrf Components". Quite the mouthful! In short, Zend Framework used the mt_rand() function to generate random numbers in situations where neither openssl_pseudo_random_bytes() nor mcrypt_create_iv() were available. This is possible when the openssl and mcrypt extensions are not installed/compiled with PHP. 
</blockquote>
<p>
He talks some about the <a href="http://php.net/mt_rand">mt_rand</a> function and how it generates its "random numbers" (designed for speed, not ultimate randomness). He notes that all of PHP's internal randomization functions use the concept of "seeds" to prime the random number/string generation. Unfortunately, the seeding method is known inside PHP, so it is possible - if the method of generation is weak, as it is with mt_rand - that an attacker could brtute force their way into a correct value. You can find more about randomness in PHP in <a href="http://phpsecurity.readthedocs.org/en/latest/Insufficient-Entropy-For-Random-Values.html">this chapter</a> of his PHP security handbook including a mention of <i>Anthony Ferrara</i>'s <a href="https://github.com/ircmaxell/RandomLib">randomness library</a>.
</p>]]></description>
      <pubDate>Tue, 26 Mar 2013 09:54:15 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen: Setting up PHP & MySQL on OS X 10.8 Mountain Lion]]></title>
      <guid>http://www.phpdeveloper.org/news/18422</guid>
      <link>http://www.phpdeveloper.org/news/18422</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has posted some notes to his site helping you get <a href="http://akrabat.com/computing/setting-up-php-mysql-on-os-x-10-8-mountain-lion/">PHP set up on OSX Lion (10.8)</a> successfully.
</p>
<blockquote>
With OS X 10.8, Apple continues to ship PHP 5.3 with Xdebug, PEAR, GD and PDO_MYSQL. This is how to set it up from a clean install of 10.8.
</blockquote>
<p>
He's broken it up into a few sections including the MySQL setup, Apache configuration 
, updating the main php.ini and setting up PHPUnit ("and friends") for your testing. He also includes setup instructions for the mcrypt and the PECL <a href="http://php.net/manual/en/book.oauth.php">OAuth</a> extensions.
</p>]]></description>
      <pubDate>Thu, 30 Aug 2012 09:09:12 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Setting up PHP & MySQL on OS X 10.7 Lion]]></title>
      <guid>http://www.phpdeveloper.org/news/16628</guid>
      <link>http://www.phpdeveloper.org/news/16628</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has posted his own guide to getting <a href="http://akrabat.com/php/setting-up-php-mysql-on-os-x-10-7-lion/">PHP 5.3 set up on OS X 10.7 Lion</a>, the just-released update for Apple's operating system. It comes with a bundled set of PHP-related tools but you might want to set them up your own way. This is where the guide comes in.
</p>
<blockquote>
With OS X 10.7, Apple continues to ship PHP 5.3 with PEAR, GD and PDO_MYSQL out of the box. This is how to set it up from a clean install of 10.7.
</blockquote>
<p>
He goes through each of the pieces of software and talks about where to download the latest from and what configuration steps are needed:
</p>
<ul>
<li>MySQL
<li>Apache
<li>the php.ini
<li>Xdebug
<li>PEAR
<li>PHPUnit (and friends)
<li>PECL OAuth
<li>mcrypt
</ul>]]></description>
      <pubDate>Mon, 25 Jul 2011 12:12:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Mark Karpeles' Blog: PHP can do anything, what about some ssh?]]></title>
      <guid>http://www.phpdeveloper.org/news/14714</guid>
      <link>http://www.phpdeveloper.org/news/14714</link>
      <description><![CDATA[<p>
In an effort to just about everything he can with PHP <i>Mark Karpeles</i> has <a href="http://blog.magicaltux.net/2010/06/27/php-can-do-anything-what-about-some-ssh/">posted an article</a> about how he created a SSH server in PHP with most (not quite all) of the functionality of some of its counterparts.
</p>
<blockquote>
You probably know SSH at least by its name. It's a of secure telnet replacement which also allows many other things such as port forwarding, remote file management (with sftp) and more. With PHP I could write a fully working SSH server in only 3 days. [...] My goal when writing this was to provide a replacement for the FTP protocol for the customers of <a href="http://www.kalyhost.com/">my hosting service</a>. 
</blockquote>
<p>
He lists the extensions used to create the extension - OpenSSL, mcrypt, hash and (the most important) GMP as well as <a href="http://ookoo.org/svn/pinetd2/trunk/code/classes/Daemon/SSHd/">a link to the source</a> if you'd like to try it out yourself.
</p>]]></description>
      <pubDate>Mon, 28 Jun 2010 13:38:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[WebReference.com: Using PHP Encryption for Login Authentication]]></title>
      <guid>http://www.phpdeveloper.org/news/14602</guid>
      <link>http://www.phpdeveloper.org/news/14602</link>
      <description><![CDATA[<p>
New on WebReference.com there's a follow up article that talks about <a href="http://www.webreference.com/programming/php/encryption_authentication/">using encryption</a> built into PHP to handle login information and authentication.
</p>
<blockquote>
Following up on "<a href="http://www.webreference.com/programming/php/encryption_one-way/">Implementing One-way Encryption in PHP</a>," my previous tutorial about using one-way encryption to build a secure online diary application, this article explores using PHP encryption for login authentication. It presents the two scripts that make up the diary application: the login and diary scripts, as well as the necessary database server connection script.
</blockquote>
<p>
His script example shows how to use the <a href="http://php.net/md5">md5 hashing function</a> to compare passwords with the ones in the database as well as a modification that uses the <a href="http://php.net/mcrypt">mcrypt</a> libraries to encrypt some sample text.
</p>]]></description>
      <pubDate>Fri, 04 Jun 2010 08:50:10 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ITNewb.com: PHP Encryption / Decryption Using the MCrypt Library (libmcrypt)]]></title>
      <guid>http://www.phpdeveloper.org/news/12568</guid>
      <link>http://www.phpdeveloper.org/news/12568</link>
      <description><![CDATA[<p>
On the ITNewb.com site there's <a href="http://www.itnewb.com/v/PHP-Encryption-Decryption-Using-the-MCrypt-Library-libmcrypt">a recent tutorial</a> that's been posted by <i>Andrew Johnson</i> about using the <a href="http://sourceforge.net/projects/mcrypt">mcrypt library</a> in your PHP apps for a simple level of data protection.
</p>
<blockquote>
The ability to encrypt and safeguard data is an essential ability that every serious web developer should have in their arsenal. In this article we'll explore encrypting data with PHP and MCrypt (libmcrypt), storing it in a database, retrieving it from a database and decrypting it for use.
</blockquote>
<p>
He works through what mcrypt is, where it can be downloaded from, a simple usage example and a more in-depth look at what its doing (making an IV, encrypting) and how to store the resulting encrypted information into a MySQL database table.
</p>]]></description>
      <pubDate>Tue, 26 May 2009 09:35:10 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevX.com: A Guide to Cryptography in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10123</guid>
      <link>http://www.phpdeveloper.org/news/10123</link>
      <description><![CDATA[<p>
The DevX.com site has posted an <a href="http://www.devx.com/webdev/Article/37821">introductory guide</a> to using cryptography in PHP, showing how to use the various packages the language has to offer.
</p>
<blockquote>
Cryptography is just one piece of the security puzzle, along with SSL/TLS, certificates, digital signatures, and so on. This article explains how to use PHP to implement the most common cryptographic algorithms. In addition to describing PHP's default encryption functions, you'll see how to use a wide variety of cryptographic libraries and packages.
</blockquote>
<p>
They start with a look at some of the built-in functions like md5, sh1 and crypt as well as a table detailing the different encryption methods (like mcrypt, mhash or crypt_blowfish). They follow this up with examples of some of them including a method for making secret keys with the <a href="http://pear.php.net/package/Crypt_DiffieHellman">Crypt_DiffieHellman PEAR Package</a>.
</p>]]></description>
      <pubDate>Tue, 06 May 2008 13:47:22 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[WebReference.com: Security Techniques: Part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/7931</guid>
      <link>http://www.phpdeveloper.org/news/7931</link>
      <description><![CDATA[<p>
WebReference.com has posted <a href="http://www.webreference.com/programming/php/php5-advanced2/index.html">part two</a> in their series looking at security techniques in PHP. This time they focus on the use of a few things - the PECL filter, the PEAR Auth module and mcrypt.
</p>
<p>
For each of the three topics covered, they include a few code examples on their use - an HTML form with the filter extension, user authentication with the PEAR Auth, and encrypting data to be used in a more secure cookie.
</p>
<p>
<a href="http://www.webreference.com/programming/php/php5-advanced2/index.html">The article</a> is excerpted from <a href="http://books.internet.com/books/0321376013">PHP 5 Advanced: Visual QuickPro Guide</a> by <a href="http://www.peachpit.com/bookstore/product.asp?isbn=0321376013&rl=1">Larry Ullman</a>.
</p>]]></description>
      <pubDate>Tue, 29 May 2007 12:02:00 -0500</pubDate>
    </item>
  </channel>
</rss>
