How can I make email a dependency through the Adobe Air TurboActivate?

I am switching over from Sharify (now closing down) for my Adobe Air app and one of the requirements there was an email address. My UI is already setup to accept an email and a license key, and I already have this info stored for my customers.

In attempting to understand and implement LimeLM, I don't see an option to send the email with the key to the LimeLM server for authentication. Is there any documentation on ta.CheckAndSavePKey that I can read? How would I send this email to the server along with the key?

Additionally, how would I make the license key dependent on this email address such that if the email is incorrect for the key, LimeLM will reject the registration attempt?

How would I send this email to the server along with the key?

You set the email for the product key when you generate the key (or even afterwards, if you want). That is, when a customer orders your software generate a key right then and there and set the email for the key.

Does that make sense?

Additionally, how would I make the license key dependent on this email address such that if the email is incorrect for the key, LimeLM will reject the registration attempt?

You can't do that. Why would you need that? A customer is prevented from sharing their key by the very nature of the design of hardware-locked licensing. So limiting a customer to using a key if there email matches is unnecessary.

"You set the email for the product key when you generate the key (or even afterwards, if you want). That is, when a customer orders your software generate a key right then and there and set the email for the key."

Will the php script you gave me to attach to Fastspring also notify you of the email to associate with the key? I want the end result to be that the email (and perhaps name) is stored on your end so I can look it up in the future. Is this possible?

The reason for asking for an associated email is that I think it reduce the chances that people will attempt to pirate the software. If an email, associated with an order, needs to be shared in order to pass a key around (regardless of whether or not it is hardware locked), I think potential hackers will be far less likely to do so.

Will the php script you gave me to attach to Fastspring also notify you of the email to associate with the key?

The script will generate the key and set the email for the key. So, yes, the script already takes care of that.

Hmm, ok the test license feature from the default fastspring script currently doesn't set the email properly on a LimeLM key.

If I want to send the name, referrer and other things, I need to add custom fields right?

If I want to send the name, referrer and other things, I need to add custom fields right?

Correct. Also, you should note if you use a fastspring variable like "$name_unicode" then you have to convert it from UTF-32 to UTF-8 before you pass it to LimeLM. For example:

/*If you want to use FastSpring unicode valuesthen you need to convert them to UTF-8 first:*/


$name_utf8 = '';foreach($name_unicode as $utf32char)	$name_utf8 .= iconv("UTF-32", "UTF-8", pack("L", $utf32char));


//now you can use the $name_utf8 value.


$feature_names = array('name');$feature_values = array($name_utf8);

I was just going to comment that the unicode chars in the name caused it to not recognize. I will fiddle around with the conversion.