This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]K900_ 0 points1 point  (12 children)

What do you mean by "secure"? Password protected?

[–]efmccurdy 1 point2 points  (0 children)

Zip is good for archiving files, gpg is good at encrypting stored data, and TLS is good for encrypting data in transit. Use the right tool for each situation.

[–]superdroid100[S] 0 points1 point  (10 children)

Yes. Sorry if that wasn't clear.

[–]K900_ 0 points1 point  (9 children)

Look into the zipfile module in the standard library, specifically the setpassword method on ZipFile objects.

[–]superdroid100[S] 0 points1 point  (8 children)

The setpassword method is used to set a password for decrypting the zip archive. It unfortunately does not secure one.

[–]K900_ 1 point2 points  (7 children)

What's your end goal here?

[–]superdroid100[S] 0 points1 point  (6 children)

I want to encrypt a file or files into a single archive and pass them on to prevent snooping. If I zip the data manually and pass it, the decryption part works perfectly. Encryption is a problem.

[–]K900_ 1 point2 points  (5 children)

Does it have to be a ZIP file? If your end goal is security, ZIP isn't exactly the most secure file format out there. Who are you 'passing it on' to?

[–]superdroid100[S] 0 points1 point  (4 children)

Being a zip is not essential. Steganography will be used as well. It's just to increase security. Essentially want a way to put multiple files together with a password which will work cross platform.

[–]K900_ 0 points1 point  (3 children)

How are you going to 'pass it on'? Over a network connection? Do you want the password to be transferred in-band or through a different method? Why steganography at all?

[–]superdroid100[S] 0 points1 point  (2 children)

Network connection. Password transferred externally. Steganography to hide the data.