Using this code using I am trying to add password with dotnetzip but its setting password inside files not to main compressed folder, and please suggest for free library a which helps in this cases
(Zip File zip = new Zip File())
{
zip. Password = password;
zip. Add Directory (folder To Zip);
zip. Save(zip File Path);
Console. WriteLine("Folder successfully zipped and password protected.");
}