Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Compiling Perl / Python?


4 replies to this topic

#1 freedomjazzdance

    Newbie [Level 1]

  • Kontributors
  • Pip
  • 16 posts

Posted 03 August 2005 - 12:03 PM

so im pretty new to programming in general, but these two languages i am even newer to.

I'm trying to find out if there is a way to compile a perl/python program so that it is encrypted, and the source could not be read.

or are these languages just scripts?

Thanks.

#2 machinamedia

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 106 posts

Posted 18 August 2005 - 10:40 AM

For Perl :

Quote

Protect your valuable Perl source code from the prying eyes of the casual user! pENC's innovative encryption system allows certain types+ of perl script to be not only encrypted once. but multiple times!
You can find it at: http://www.scriptsfi...detailed/4.html

Also you can read more about perl source encryption here: http://www.webmaster...orum13/3109.htm

For Python
No clue

Cheers!

#3 coolcat50

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 303 posts
  • Gender:Male
  • Location:Random Places
  • myCENT:65.80
  • Spam Patrol

Posted 19 December 2007 - 10:42 PM

Perl programs can't be hidden that well to my knowledge. If you need really protected code, use C or C++ which must be compiled. Perl is a good beginner's lanuage, and is great because of CGI support. I do not know of a way to encrypt perl though. One way could be to make the directories of a program be executable only.

#4 marekdudek

    Newbie

  • Kontributors
  • Pip
  • 8 posts
  • Gender:Male
  • Location:Poland, Wrocław

Posted 21 December 2007 - 08:05 PM

Python can produce *.pyc file for every *.py file. It is a bytecode so it's pretty unreadable althou it's done to load faster.
There are also *.pyo files, but they can cause trouble.

Other thing is to produce *.exe executable from *.py. It can be done for Windows but not for Linux AFAIK.

Hope that helps

#5 CalebFTW

    Newbie [Level 3]

  • Kontributors
  • PipPipPip
  • 49 posts

Posted 22 November 2010 - 11:11 PM

hello freedomjazzdance I don't know if you have already figured out how to compile them on your own but i'll try and help anyways ;) for python download py2exe http://py2exe.org/ it is completly free but it includes a mini version of the python environment making a script a little larger then it should then to compile it just make a python file like:
import py2exe
setup(console=['program.py'])
then for perl it costs money :( but it has a free 21 day trial :D enough time to compile any projects you want to release ;) download PDK(perl dev kit) from here: http://www.activesta...om/perl-dev-kit program explains itself ;) good luck also can compile for any os just not windows making your appication multiplatform ;)
~calebFTW




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users