[issue6749] Support for encrypted zipfiles when interpreting zipfile as script

2009-08-23 Thread Peter Manis

Peter Manis  added the comment:

My thinking behind this was not to be the ultimate security against 
someone getting the source, but more of a very high wall to keep out the 
majority of people.

It seems like the best way to determine what file should be decrypted 
and when a password should be prompted is to look at the header of the 
zip file where it defines the encryption information as the zip file is 
loaded.  Taking that approach would allow someone, if they wanted, to 
put multiple encrypted zip files in the path and be prompted for each 
one.  That is not my planned usage of it, but someone else may have a 
use for that.

Could someone point me in the right direction on where this 
functionality would live if implemented?  In the event there is enough 
votes to prevent it from being added I would like to try to work on it 
so I can patch my own installations of Python.

--

___
Python tracker 
<http://bugs.python.org/issue6749>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6749] Support for encrypted zipfiles when interpreting zipfile as script

2009-08-23 Thread Peter Manis

Peter Manis  added the comment:

I don't think I will be able to provide a patch.  If I am correct this 
would live in Modules/zipimport.c and I do not have enough experience in 
C/C++ to add in the feature.  If in the end zipimport ends up using 
Lib/zipfile.py then I can work on adding the feature.

--

___
Python tracker 
<http://bugs.python.org/issue6749>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6749] Support for encrypted zipfiles when interpreting zipfile as script

2009-08-20 Thread Peter Manis

New submission from Peter Manis :

The zipfile support in 2.6 that allows you pass a zipfile(with __main__.py 
inside) as the "script", does not support encrypted zipfiles.  I view this 
as being a feature that could be useful to some.

--
components: Library (Lib)
messages: 91800
nosy: manis
severity: normal
status: open
title: Support for encrypted zipfiles when interpreting zipfile as script
type: feature request
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2

___
Python tracker 
<http://bugs.python.org/issue6749>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com