Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

212
Vistas
how to extract password-protected zip in Node Js
const unzipper = require("unzipper");
const fs = require("fs-extra");

async function test() {
  const file = "old.zip";
  const password = "abc";
  const directory = await unzipper.Open.file(file);
  console.log("password", password);
  const extracted = await directory.files[0].buffer(password);
  fs.writeFileSync("extracted/", extracted);
}
test();

I have two files, old.zip and new.zip. The only difference is that when I created old zip using winrar, I checked legacy encryption. You can see the picture below.

enter image description here

My code works for old zip, but not new.zip. Is there any other way to extract the new.zip file?

edit: change title from using javascript => in Node js

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda