Skip to content

readme additional info on password protection #492

@hsdk123

Description

@hsdk123

Hi, it's taken me a while to realise that

file_info.flag |= MZ_ZIP_FLAG_ENCRYPTED;
file_info.aes_version = MZ_AES_VERSION;

need to be set in order for password protection for entry writing to work properly.

I had misassumed that setting either mz_zip_writer_set_password, or writer_password_cb would be sufficient for entries to be written with password protection.

I think an addition to the docs somewhere on this (ex. for the above functions) would help any future mishap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocumentation updatefixedIssue or bug has been fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions