New module to generate secured download links inside nginx

I created a module to generate secured download links on the fly
directly inside nginx, via ssi.
i would like to know if you people find that useful or not and if you
maybe see things to improve in the code?

this is the howto use:

and this is the source:

please don’t put it into production, its really not tested well.