http://www.perlmonks.org?node_id=1228085


in reply to Re^2: Encrypting source code :(
in thread Encrypting source code :(

It doesn't solve your problem, but if you decide to roll your own solution, you might want to look at this node. I did that after reading this thread because I was curious how something like what you're asking for would work.