How create serial key like encrypted string
<p>below snippet which encrypt the string but encrypted string looks like random alphanumeric. but i want encrypted string like </p>

<blockquote>
  <p>5214-6548-4584-4568-abcd  or ABCD-TEST-1F2D-FSDF</p>
</blockquote>

<p>My snippet </p>

<pre><code>$encrypted = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $string, MCRYPT_MODE_CBC, md5(md5($key))));
var_dump($encrypted); // "ey7zu5zBqJB0rGtIn5UB1xG03efyCp+KSNR4/GAv14w="
</code></pre>

<p>the below snippet i took from <a href="http://stackoverflow.com/questions/6833448/how-should-i-encrypt-my-data-in-a-php-application">source encryption</a></p>

<p>How to create serial number using client MAC+HOST+os</p>
