Password not working

Feb 8 at 12:27 PM
Edited Feb 8 at 12:28 PM
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