Linked Questions
16 questions linked to/from How to create an encrypted ZIP file?
18
votes
5
answers
56k
views
Code to create a password encrypted zip file? [duplicate]
What is the Python code to create a password encrypted zip file? I'm fine with using some apt-get'able utilities using system on the command line.
11
votes
2
answers
41k
views
Create password protected zip file? [duplicate]
I'm using following code to create password protected zip file, from a file uploaded by user, in my Python34 application using zipFile. But when I open the zip file from windows, it doesn't ask for ...
1
vote
2
answers
2k
views
zipfile: Adding files to encrypted zip [duplicate]
I have an encrypted ZIP file and for some reason, any password I feed it doesn't seem to matter as it can add files to the archive regardless. I checked for any ignored exceptions or anything, but ...
0
votes
1
answer
355
views
How to Create Password Protected Zip file? [duplicate]
i want to zip a text file with password how can i achive it
for example
filename = "./data.txt"
password = "1234"
0
votes
0
answers
26
views
zipfile module in python [duplicate]
Is it possible to create password protected zip file using zipFile module?
I tried zipfile.setpassword() and it doesn't work.
If it's not possible using this module please suggest alternative way
...
190
votes
10
answers
514k
views
How to solve "error: Microsoft Visual C++ 14.0 or greater is required" when installing Python packages?
I'm trying to install a package on Python, but Python is throwing an error on installing packages. I'm getting an error every time I tried to install pip install google-search-api.
Here is the error ...
2
votes
2
answers
7k
views
suppress deprecation in python
so - I'm using a library pyminizip - which is the only way I've found to create a password protected zip file. When I use it I get a deprecationwarning: PY_SSIZE_T_CLEAN will be required for '#' ...
2
votes
5
answers
2k
views
Write in-memory data to an encrypted ZIP or 7Z (without using an on-disk temp file)
I have 2 GB of data in memory (for example data = b'ab' * 1000000000) that I would like to write in a encrypted ZIP or 7Z file.
How to do this without writing data to a temporary on-disk file?
Is it ...
0
votes
1
answer
4k
views
Setting a password with python's zipfile module
When using the python module zipfile, for some reason I don't know I can't set a password for an archive created.
When trying to unzip following empty zip archive, I can do so without prompting a ...
0
votes
1
answer
5k
views
Unzipping Password protected folders using Python [duplicate]
I have some 100 folders zipped and password protected.
To unzip them using python script I can use:
import zipfile
with zipfile.ZipFile("file.zip","r") as zip_ref:
zip_ref.extractall("targetdir")....
6
votes
2
answers
1k
views
File encryption with Python
Is there a way to encrypt files (.zip, .doc, .exe, ... any type of file) with Python?
I've looked at a bunch of crypto libraries for Python including pycrypto and ezpycrypto but as far as I see they ...
1
vote
1
answer
1k
views
How to password protect an object of type ZipFile?
I am trying to send a password protected zip file as a base64 string.
data = BytesIO()
zip = zipfile.ZipFile(data, 'w')
zip.writestr('test.csv', 'Hello, World')
zip.setpassword(b'1234')
zip.close()
...
0
votes
1
answer
587
views
How to add password to zip file
I use this script to make zipped backup of important folder but because after 5th backup files is moves to Recycle Bin and show to everyone I am looking for setpassword opinion to protect deleted zips ...
0
votes
1
answer
294
views
How to create password protected csv or ZIP archive in python
async def get_report(id):
try:
data = await collection.find({"_id": ObjectId(id)}).to_list(None)
if data:
df1 = pd.DataFrame(data)
directory = ...
1
vote
0
answers
404
views
How to compress Excel buffer into ZIP buffer?
I'm trying to compress a Excel BytesIO stream into a ZIP BytesIO stream but ValueError: stat: embedded null character in path is called when I use write(). I used pyzipper and pyminizip but neither ...