Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET Prevent file in ZIP archive from being deleted

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #19747 |

    I have an encrypted zipfile where I had hoped that the files contained within it would not be allowed to be deleted (unless the correct password was given) – this doesn’t appear to be the case.

    Is it possible at all to prevent files contained within a zip archive to be “off-limits”? Or does password protection just prevent viewing but not adding/deleting/etc operations?

    Imported from legacy forums. Posted by Shmuel (had 2027 views)

    User (Old forums)
    Member
    Post count: 23064

    The password is required only to decrypt the data, and not to control the file. There is no mechanism in place in the Zip file format specification that would enable you to do what you want.

    Imported from legacy forums. Posted by André (had 2990 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.