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:
<?php
error_reporting(E_ALL);
function KeyGen(){
$key = md5(mktime());
$new_key = '';
for($i=1; $i <= 25; $i ++ ){
$new_key .= $key[$i];
if ( $i%5==0 && $i != 25) $new_key.='-';
}
return strtoupper($new_key);
}
echo KeyGen();
?>
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.
Is it possible?
Ok lets break down what you are asking:
You want to: