Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

how to encryption script

by Anonymous Monk
on Jul 21, 2007 at 06:46 UTC ( #627949=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi great monks,
I have seen some of the perl scripts encrypted as pictures like camel.
1) how to encrypt the script?
2) is there any way to decrypt?
suggest me .......
regards,
Aparachitudu

Replies are listed 'Best First'.
Re: how to encryption script
by planetscape (Chancellor) on Jul 21, 2007 at 06:59 UTC

    It is not encryption per se, but obfuscation. If you want to hide your source, Perl, being interpreted rather than compiled, is probably not the language for you. To get some ideas on how to obfuscate your own programs, you might want to Super Search for "obfuscation", or browse the Obfuscated Code section. Super Searching for "perl golf" will probably also give you some useful ideas.

    HTH,

    planetscape
Re: how to encryption script
by CountZero (Bishop) on Jul 21, 2007 at 06:57 UTC
    It is called "obfuscation". Search on that in super-search and you will find more examples.

    It is not really about encrypting the script, rather more to show off your coding skills.

    It is possible because Perl is an (almost) free form language where you can add whitespace and line-feeds (almost) everywhere so you can lay-out your script in funny ways. To see through all this eye-candy, one usually employs the B::Deparse module which "decompiles" the script and shows a more classical representation of the script.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re: how to encryption script
by daxim (Curate) on Jul 21, 2007 at 09:22 UTC
Re: how to encryption script
by marto (Cardinal) on Jul 21, 2007 at 12:28 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://627949]
Approved by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2021-06-21 11:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (98 votes). Check out past polls.

    Notices?