lua-simple-encrypt icon indicating copy to clipboard operation
lua-simple-encrypt copied to clipboard

Multi Upload File

Open Tchaj opened this issue 5 years ago • 2 comments

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

Tchaj avatar Aug 25 '20 16:08 Tchaj

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.

ganlvtech avatar Aug 30 '20 10:08 ganlvtech

Can you do a better example?

jrubimf avatar Aug 02 '21 01:08 jrubimf