Generation

generate functionTue, 14 Mar 2023

encrypt and decrypt zip file

Script var encryption = require('./encryption'); var fs = require('fs'); var path = require('path'); var password = "123456"; var filepath = path.join(__dirname, '../file/test.zip'); var fileEncryptPath = path.join(__dirname, '../file/test.zip.encrypt'); var fileDecryptPath = path.join(__dirname, '../file/test.zip.decrypt'); encryption.encrypt(filepath, fileEncryptPath, password); encryption.decrypt(fileEncryptPath, fileDecryptPath, password);

Want to kickstart your project?Use the new AI Studio to create your code