CRACKER, the premier code obfuscation utility for Python... (WAS: RE: POLLY: An IDE for Parrot)
Bob Calco
rcalco at cortechs.com
Mon Apr 2 01:50:21 EDT 2001
CRACKER 1.0
-------------
What Is It?
------------
A code obfuscation utility for the Python language. Basically, it makes a
Python script much harder to read.
Example:
-------
INPUT:
------
import sys
def main():
n = int(sys.argv[1])
x = n * [0]
y = n * [0]
for i in xrange(0,n):
x[i] = i
for i in xrange(n-1,-1,-1):
y[i] = x[i]
print y[-1]
main()
OUTPUT:
-------
use strict;
my $n = $ARGV[0] || 1;
my @X;
my @Y;
for (my $i=0; $i<$n; $i++)
{
$X[$i] = $i;
}
for (my $i=$n-1; $i>=0; $i--)
{
$Y[$i] = $X[$i];
}
print "$Y[-1]\n";
---------------------
;)
Bob Calco
# -----Original Message-----
# From: python-list-admin at python.org
# [mailto:python-list-admin at python.org]On Behalf Of Warren Postma
# Sent: Monday, April 02, 2001 1:14 AM
# To: python-list at python.org
# Subject: POLLY: An IDE for Parrot
#
#
# Polly 1.0
# ---------
#
# What Is It?
# -----------
#
# A nice Integrated Development Environment (IDE) for the Parrot language
# invented by GvR and the Wall-meister, with contributions from the open
# source community.
#
# Online Help Feature
# --------------------
#
# When you hit F1, it will print out a random insult, and suggest that you
# read a randomly generated ANSI,
# ISO, or MIL-STD spec serial number, and impolitely suggest that
# you go away,
# or it will pop up a prefabricated answer from the code-snippet library of
# one of the friendly neighborhood usenet-Bots, translating from Python
# internal syntax to Parrot syntax for display, and inserting one
# hard to find
# scope error along the way, courtesy of mangled indentations,
# similar to the
# functionality built into Outlook Express. This feature alone
# should really
# lower the congestion on comp.lang.perl and comp.lang.python substantially.
#
# GUI Builder
# ------------
#
# The GUI uses a combination of Tk, wxWindows, and the raw XLib and
# Win32 GDI
# APIs. The GUI Frames manager has a built in "themes" mode that
# can simulate
# (a) incredibly ugly Tk widgets, (b) Win32 text widget that flicker, and
# Win32 32x32 16 color Icons that just plain refuse to appear, or (c)
# WxWindows widgets that consume 10Kb of additional memory per
# window event or
# mouse click, for each item on the screen.
#
#
# Any interest?
#
#
# Warren
#
#
# --
# http://mail.python.org/mailman/listinfo/python-list
#
More information about the Python-list
mailing list