Code::Crypt::Graveyard - Encrypt you code with multiple nested keys
version 0.001000
use Code::Crypt; use Code::Crypt::Graveyard; print "#!/usr/bin/env perl\n\n" . Code::Crypt::Graveyard->new( code => 'print "hello world!\n";', builders => [ Code::Crypt->new( get_key => q{ $] }, key => $], cipher => 'Crypt::Rijndael', ), Code::Crypt->new( get_key => q{ $^O }, key => $^O, cipher => 'Crypt::Rijndael', ), Code::Crypt->new( get_key => q{ require Sys::Hostname; Sys::Hostname::hostname(); }, key => 'wanderlust', cipher => 'Crypt::Rijndael', ), ], )->final_code
Code::Crypt::Graveyard leverages Code::Crypt to encrypt code in a nested fashion. This can help to keep what inner keys are a secret. In the example given in the "SYNOPSIS" the outermost key is the hostname. The inner keys are the operating system and the perl version. Of course, as with Code::Crypt, a technically proficient user that the code is targetted towards can likely remove all encryption entirely.
Code::Crypt::Graveyard
final_code
my $code = $cc->final_code;
This method takes no arguments. It returns the compiled code based on the "ATTRIBUTES".
code
required. The code that will be encrypted.
builders
required. An arrayref of Code::Crypt objects that will encrypt the "code" recursively. Innermost is first.
Code::Crypt
Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>
This software is copyright (c) 2013 by Arthur Axel "fREW" Schmidt.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Code::Crypt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Code::Crypt
CPAN shell
perl -MCPAN -e shell install Code::Crypt
For more information on module installation, please visit the detailed CPAN module installation guide.