title: PHP license key generator
body: <p>I'm looking for a way to generate license keys by a PHP script and then transfer its to my application (Air, AS3), and in this application to read the data correctly. For example, here is the code: </p>
  
  <pre><code>&lt;?php
    error_reporting(E_ALL);
    function KeyGen(){
       $key = md5(mktime());
       $new_key = '';
       for($i=1; $i &lt;= 25; $i ++ ){
                 $new_key .= $key[$i];
                 if ( $i%5==0 &amp;&amp; $i != 25) $new_key.='-';
       }
    return strtoupper($new_key);
    }
    echo KeyGen();
  ?&gt;
  </code></pre>
  
  <p>The generates key about like this: 1AS7-09BD-96A1-CC8D-F106.
  I want to add some information into key - e-mail user, then pass it to the client (Air app), decrypt the data and dysplay in app. </p>
  
  <p>Is it possible?</p>