[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Sat Jan 29 20:43:35 2005 -->
- <!--x-from-r13: wybqra ng gbhtuthl.arg (Xnl Zbqra) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Py[h]hon syntax (sic) -->
- <li><em>date</em>: Sat Jan 29 20:43:35 2005</li>
- <li><em>from</em>: jloden at toughguy.net (Jay Loden)</li>
- <li><em>in-reply-to</em>: <<a href="msg01304.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg01121.html">[email protected]</a>> <<a href="msg01233.html">[email protected]</a>> <<a href="msg01304.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Py[h]hon syntax (sic)</li>
-Jay
On Saturday 29 January 2005 10:55 am, Fletch wrote:
> >>>>> "Christopher" == Christopher Fowler <cfowler at outpostsentinel.com>
> >>>>> writes:
>
> Oop, I missed this the other day . . .
>
> [...]
>
> Christopher> I read in the O'reilly book "Learning Python" that
> Christopher> the code can be compiled into a .pyc file. How do I
> Christopher> compile into .pyc so that I can distribute the code
> Christopher> without the source being seen? This is one of my
> Christopher> biggest problems with Perl.
>
> Python bytecode's not going to prevent anyone from mucking with things
> any more than compiling Java to bytecode does (or C to machine code
> for that matter). If someone's determined enough they'll be able to
> recover pretty near the original source.
>
>
> Having said that, if you want to raise the bar to discourage casual
> mucking for Perl see perldoc B::Byetcode (although it's still pretty
> experimental), PAR (which will wrap everything up into an executable
> with an embedded zip archive), or one of the obfuscation filters (the
> original Acme::Bleach, the somewhat repetitive Acme::Buffy, or the
> swiss army chainsaw of source obfuscation Acme::EyeDrops) from CPAN.
> Acme::EyeDrops comes with a script that'll easily let you turn:
>
> #!/usr/bin/perl
> print "Hello world\n";
>
>
> Into this (yes, this is valid perl; not that that's going to surprise the
> python people much . . . :)
>
> #!/usr/bin/perl
> ''=~('('.'?'
> .'{'.( '`'|'%').("\["^
> '-').('`'| '!').('`'|',').'"'
> .'#'."\!". "\/".( '['^'.').('['^'(').(
> '['^')').'/'.(('`')| '"').('`'|')').(('`')|
> '.').'/'.('['^"\+").( '`'|'%').('['^')').('`'
>
> |',').('!'^('+')).( '!'^'+').('['^'+').(('[')^
>
> ')').('`'|')') .('`'|'.').('['^'/').('{'^'['
> ).'\\'.('"').( '`'^'(').('`'|'%').('`'|(',')).(
> '`'|',').("\`"| '/').('{'^'[').('['^',').('`'|'/').
> ('['^')').('`'| ',').('`'|'$').'\\'.'\\'.('`'|'.').''.
> '\\'.'"'."\;".( '!'^'+').('!'^'+').('`'|'%').('['^'#').(
> '`'|')').('['^ '/').('{'^'[').('^'^('`'|'.')).';'.("\!"^
> '+').('!'^'+') .'"'.'}'.')');$:='.'^'~';$~='@'|'(';$^=')'
> ^'[';$/='`'|'.';$,='('^'}';$\='`'|'!';$:=')'^'}';$~=('*')|
> '`';$^='+'^'_';$/='&'|'@';$,='['&'~';$\=','^'|';$:='.'^'~';
> $~='@'|'(';$^=')'^'[';$/='`'|'.';$,='('^'}';$\='`'|'!';$:=
> ')'^'}';$~='*'|'`';$^='+'^'_';$/='&'|'@';$,='['&'~';$\=','^
> '|';$:='.'^'~';$~='@'|'(';$^=')'^'[';$/='`'|'.';$,='('^'}';
> $\='`'|'!';$:=')'^'}';$~='*'|'`';$^='+'^'_';$/='&'|'@';$,=
> '['&'~';$\=','^'|';$:='.'^'~';$~='@'|'(';$^=')'^"\["; $/=
> '`'|'.';$,='('^'}';$\='`'|'!';$:=')'^'}';$~='*'|'`' ;$^
> ='+'^'_';$/='&'|'@';$,='['&'~';$\=','^'|' ;$:='.'^ '~'
> ;$~='@'|'(';$^=')'^'[';$/='`'|"\.";$,= '('^'}' ;$\
> ='`'| '!';$:=')'^'}';$~='*'|"\`";$^= '+'^'_' ;$/
> ='&'|'@';$,='['&'~';$\=(',')^ '|';$:= '.'
> ^'~';$~= '@'|'(';$^ ="\)"^ '[';$/ =(
> ('`'))| "\.";$,= ('(')^ '}';$\ =(
> ('`'))| "\!";$:= "\)"^ "\}"; (
> ($~))= '*'|'`'; ($^) ='+'
> ^"\_"; $/=('&')| '@'; ($,)
> ='['& "\~";$\= ','^ '|';
> ($:)= '.'^'~' ;$~= '@'|
> '('; $^=')' ^'[' ;$/=
> '`'| '.' ;$,= '('^
> '}'; $\= '`' |((
> '!' )); $:= ')'
> ^(( '}' )); $~=
> '*' |(( '`' ))
> ;( ($^))= ((
> (( '+')) ))
> ^+ "\_";$/= ((
> '&' ))|+ "\@"; $,
> =(( '['))& '~'; $\=
> ','^ "\|";$:= '.' ^'~'
> ;($~)= ('@')|
> "\(";$^= ')'^'['
>
>
> __END__
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="01121" href="msg01121.html">[ale] Pyhon syntax</a></strong>
<ul><li><em>From:</em> fletch at phydeaux.org (fletch at phydeaux.org)</li></ul></li>
<li><strong><a name="01233" href="msg01233.html">[ale] Py[h]hon syntax (sic)</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Christopher Fowler)</li></ul></li>
<li><strong><a name="01304" href="msg01304.html">[ale] Py[h]hon syntax (sic)</a></strong>
<ul><li><em>From:</em> fletch at phydeaux.org (Fletch)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg01316.html">[ale] Remote dd ?</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg01318.html">[ale] centos</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg01305.html">[ale] Py[h]hon syntax (sic)</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg01093.html">[ale] wireless networking</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#01317"><strong>Date</strong></a></li>
<li><a href="threads.html#01317"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>