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

Multi Upload File #14

Open
Tchaj opened this issue Aug 25, 2020 · 2 comments
Open

Multi Upload File #14

Tchaj opened this issue Aug 25, 2020 · 2 comments

Comments

@Tchaj
Copy link

Tchaj commented Aug 25, 2020

Hello,
How to multiupload file and encrypt all files and download all files in zip.
Thank You

@ganlvtech
Copy link
Owner

It's a little difficult to do this in a browser. Because code are writen in js and encryption is done on your computer. There is no server.

If you have node.js installed. You can download this project. Run npm install

And replace index.js with some code like

import fs from 'fs';
import luaSimpleXorEncrypt from './LuaSimpleXorEncrypt';

// You need to repeat these lines to encrypt multiple files.
const encrypted = luaSimpleXorEncrypt(fs.readFileSync(path), 'password', options);
fs.writeFileSync(newPath, encrypted);

and then add target: 'node', to webpack.config.js.

Finally, run npm run build. You will let index.js run.

@jrubimf
Copy link

jrubimf commented Aug 2, 2021

Can you do a better example?

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

3 participants