Over on Github I’ve open sourced a little library for generating and verifying product registration keys. I needed this for a couple of my projects, and I’ve made it available with hopes of saving anyone else from having to write one!

The tool takes a someone’s name and a salt (which is your product id in most cases) and spits out a short upper case string of letters and numbers (minus confusing ones like o/0 1/l).

The goals of this tool are simple: to generate a short easily entered registration code without the need for an internet connection or the need for cryptographic libraries which may not be commonly available.

As a result the code the tool generates is by no means cryptographically secure, but since serious crackers can just bypass the reg-key check altogether using commonly available tools, this is really just to keep honest people honest!

Hopefully it’ll be useful to you someone…

» Visit the project page on Github…

The Simple Download Manager is another itch scratch to open source software project tale, basically I needed a simple way to serve files for download and keep some statistics. So, like a good open source citizen I’ve made it available under the GPL, hopefully it’ll save someone some time!

Usage is very simple; clone the git repository onto your web server, put your downloads in the “downloads” directory, and describe them with a manifest in “products”, e.g.


DownloadManager::registerProduct(
new Product(array (
'productid' => 'ExampleProduct12345',
'name' => 'Example',
'description' => 'An example download',
'file' => 'downloads/example.zip',
'tags' => 'download, example',

'gacode' => 'GA-12345',
'icon' => 'gfx/download.gif',
))
);

Have fun!

» Visit the project page on Github…