Password not working

Feb 8 at 11:27 AM
Edited Feb 8 at 11:28 AM
Hi,

Why does the following code not work?
The file gets created OK but it can be opened without a password...
Dim zf As New ZipFile
zf.AddFile("c:\users\public\test.pdf", "")
zf.Password = "whatever"
zf.Save("c:\users\public\test.zip")

Thanks