Skip to content

Can not unzip file #39

Description

@mqliutie
import archiver from 'archiver';

archiver.registerFormat('zip-encrypted', require('archiver-zip-encrypted'));

const archive = archiver.create('zip-encrypted', {
  zlib: { level: 8 },
  encryptionMethod: 'aes256',
  password: 'n.ddsadc3ch',
});
const entry = path.join(process.cwd(), 'app/dist/sourcemaps');
const output = fs.createWriteStream(path.join(process.cwd(), 'app/dist/sourcemaps.zip'));
archive.pipe(output);
archive.directory(entry, 'sourcemaps');
archive.finalize();

Above codes show how can I zip files with password

I want to unzip this file named sourcemaps.zip. I used unzipper and adm-zip. all of them tell me the password 'n.ddsadc3ch' is bad password. but I can use it unzip this file on Finder macOS. so How can i unzip this file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions