Koriolis SetZipStreamPassword help

BlitzMax Forums/BlitzMax Programming/Koriolis SetZipStreamPassword help

Rixarn(Posted 2010) [#1]
Hi,

I'm a little lost here... I want to set a password for a zip file but i cant make it work.. don't know what i'm doing wrong..I just made a test file that has this:

SetZipStreamPasssword("c:\mydata.zip", "helloworld")


Code runs, but the zip file is not password protected after execution.

Any advice?

Thanks!


Tommo(Posted 2010) [#2]
ZipStream module only provides reading functions, so you can't modify zip files with it.
Try ZipEngine instead.


Midimaster(Posted 2010) [#3]
I know, this function is not for changing passwords in a zipfile, but for setting the password for the koriolis function!

For this features you need a zip-file e.g. packed by WinZip with the (simple) password protection and the Password "helloworld".

Now you cannot open the file with the normal koriois function anymore. To change this you have to tell koriolis the password of the Zipfile. And therefore you use the..

SetZipStreamPasssword("c:\mydata.zip", "helloworld")



Rixarn(Posted 2010) [#4]
Hey, Thank you both for your responses. So i misunderstood the function then he he...

Btw,I didnt knew that gman's zipengine had a feature for passwords. I'll check it then.

Thanks!