Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot extract AES-encrypted archives with a £ character in the password #653

Open
tijme opened this issue Jul 30, 2022 · 0 comments
Open

Comments

@tijme
Copy link

tijme commented Jul 30, 2022

A user of my app noticed that ZIP-archives with a £ in the password cannot be decrypted. Please view the full details in the issue: https://github.com/raivo-otp/ios-application/issues/59.

Steps to reproduce

  1. Create an AES-encrypted ZIP-archive using this library with the password ££qqqqqq
  2. Export the file to a Windows machine
  3. Try to decrypt it using 7-Zip

My code to create the ZIP-archive:

SSZipArchive.createZipFile(
    atPath: outputDirectory,
    withContentsOfDirectory: inputFilesPath,
    keepParentDirectory: false,
    compressionLevel: 0,
    password: password,
    aes: true
)

Expected behavior

The ZIP-archive should be extracted.

Actual behavior

It states the password is incorrect. If I create a ZIP-archive with the password qqqqqqqq (without ££) it does work, and 7-Zip is able to decrypt it.

Version of ZipArchive

2.4.2

Environmental information

Windows 11. iOS 15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant