A Lua script loader with a built-in key check

Host your script with Lumikey and publish a single loadstring line. The script is only sent after the key is checked, so there is no check in the downloaded file to remove.

What the loader does

The loader request carries the project id, the key and the device id. If the key is valid, the response is your script. If not, the response is a Lua error line with a readable message, so loadstring shows the reason, for example that the key expired or belongs to another device.

What you get with it

An honest limit

Anything that runs on a user's machine can be captured there. The loader keeps the script away from people without a valid key, and obfuscation makes a captured copy harder to read. Neither makes it impossible to copy.

Questions

Is the loader Lua only?

The loader endpoint returns Lua. For other languages, use the key-check API, which returns JSON.

What does the user see when the key is bad?

A plain error message with the reason, printed by loadstring, such as an expired key or a key locked to another device.

Can I change the script after publishing?

Yes. Edit the hosted file in the dashboard. The loader line in your published script stays the same.