By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,660 Members | 1,267 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,660 IT Pros & Developers. It's quick & easy.


P: 7
Hi All,

I just want to use this module. I believe this is used to encrypt perl source code.
but i couldn't found much in CPAN about how to use it. When i m using it in my script it is giving following error.

Unrecognized character \x11 at line 6.

Expand|Select|Wrap|Line Numbers
  1. #! usr/bin/perl
  2. use strict;
  3. use warnings;
  5. use Filter::decrypt ;
  7. print "hello world";
Nov 19 '08 #1
Share this Question
Share on Google+
2 Replies

Expert 2.5K+
P: 4,059
It appears to be used to decrypt source code, not encrypt it, hence Filter::decrypt. But I have no idea how this module is used.
Nov 19 '08 #2

P: 7
After digging a bit in CPAN I found the solution. May be someone else is also interested in it so I am posting it here.
Actually Filter::decrypt provides the means to convert Perl files into an encrypted, yet still runnable, format to hide the source code from casual prying eyes. But make sure to take a copy of it before encrypting bcoz I dont know how to decrypt it back to the original source code (as i hav done for one of my script and now not able to reproduce it back :( ).

All you have to do is install this module and pass your script as command line parameter for the encrypt script which comes with this module. It will encrypt your script and prepend the following line in your encrypted script

Expand|Select|Wrap|Line Numbers
  1. use Filter::decrypt ;
For more details you can look into perlfilter

You can also create your own source filter by looking into examples in perlfilter
Nov 21 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.