Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Acme Enc

by perlsameer (Initiate)
on Jul 23, 2008 at 13:04 UTC ( #699600=perlquestion: print w/ replies, xml ) Need Help??
perlsameer has asked for the wisdom of the Perl Monks concerning the following question:

Hello Everyone
I have cgi script, which internall works on Net::SSH::Expect
module to connect remote systems.
I want to hide my source code
so i am using module Acme::Enc which encrypts source code
but while i am running its loading my cgi page perfectly but the output which comes from Net::SSH::Expect its
displaying on webpage..
Can anyone help to me about this issue.

Thanks in Advance

Comment on Acme Enc
Re: Acme Enc
by svenXY (Deacon) on Jul 23, 2008 at 13:09 UTC
    Hi,
    please read How (Not) To Ask A Question and provide at least some example code that reproduces your problem to make it easier for us to help you.
    Regards,
    svenXY
Re: Acme Enc
by marto (Chancellor) on Jul 23, 2008 at 13:42 UTC
    Please do not place too much stock in the "security" you may think you have achieved using Acme::Enc. See posts like Close Perl Code (similar posts can be found, Super Search is your friend) which highlight this point. Also, if you do not want to display things on a web page, why are you including them in the data which is returned to the browser?

    Martin
Re: Acme Enc
by Popcorn Dave (Abbot) on Jul 24, 2008 at 02:07 UTC
    Unless you're Wile E. Coyote Genius, you should probably stay away from the ACME modules for anything serious. ;)


    Revolution. Today, 3 O'Clock. Meet behind the monkey bars.

    I would love to change the world, but they won't give me the source code

Re: Acme Enc
by leocharre (Priest) on Jul 24, 2008 at 02:25 UTC

    Why are you trying to hide your source code?

    Don't depend on obscurity for security. It goes against everything the people who made perl, ssh, the modules you're using- believe in.

    It's not about morality- It's just poor practice. You will ultimately end up introducing new bugs, making your program slow- turning off anybody who may want to help- including the community and your co-workers! :-D

    Check out Acme::Bleach.

    I know it seems counter intuitive. But- do you like perl, apache, firefox, etc? These things work partly because it's not about hiding code. Making the conversion of philosophy from hiding things- to showing everything- is hard but you will grow and become stronger. Your stuff will work better and be more secure also.

    If you must 'hide' things- "hide" config files with precious db acces parameters, etc- by chmodding them so only you or our software can read them. Your script in /home/myself/public_html/cgi-bin/precious.cgi could use YAML to read a config file in /home/myself/not_inside_webshare/precious.conf

    Here, check this out, about security through obscurity. Obviously I want you to read the part that says 'arguments for'.
    Also skim through some of this interview with Stallman, and some of the gnu ideology, it may energize you and inject you with ambition and good energy.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2014-09-17 07:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (65 votes), past polls