spieglt / Cloaker

Simple, drag-and-drop, password-based file encryption
GNU General Public License v3.0
405 stars 38 forks source link

[Feature Request] multiple files #11

Closed spring-haru closed 3 years ago

spring-haru commented 3 years ago

It would be great if multiples files are encripted/decripted at the same time with the same password.

spieglt commented 3 years ago

@spring-haru Thanks for reaching out. I thought about this, but decided it would complicate the code too much. There are two good workarounds, however:

  1. Compress multiple files/folders into one .zip file or other archive format, then encrypt that with Cloaker.
  2. Use the CLI version of Cloaker in a script, looping over the files you want to encrypt, and using the -f flag to specify a password file or -p to include the password in the command. (Warning: using -p may leave the password in your terminal history.)
spring-haru commented 3 years ago

I may consider write an AppleScript for myself to loop to apply Cloaker over files in a folder. Thanks anyway.

spieglt commented 3 years ago

Sounds good. Here's a one-liner for the terminal to encrypt every file in a folder: cd ~/FolderWithFiles ; ls | xargs -I '{}' cloaker --password-file ~/passwordFile --encrypt '{}'