mhogomchungu / sirikali

A Qt/C++ GUI front end to sshfs, ecryptfs-simple, cryfs, gocryptfs, securefs, fscrypt and encfs
http://mhogomchungu.github.io/sirikali
GNU General Public License v3.0
766 stars 58 forks source link

Open favorites with command line options #190

Closed Satlinker closed 2 years ago

Satlinker commented 3 years ago

Hi, I'd like to open encrypted folders with keepass(xc). Is it possible to open sirikali favorites with a command line option? Examples how it works with veracrypt: cmd:///usr/bin/veracrypt --auto-mount=favorites cmd://"C:\Program Files\VeraCrypt\VeraCrypt.exe" /volume "{USERNAME}" /letter Z /password "{PASSWORD}" /quit

mhogomchungu commented 3 years ago
  1. What backend are you using? CryFS?,Gocryptfs, Securefs or?
  2. Your example does not show how keepass is used with veracrypt.
Satlinker commented 3 years ago

I use Gocryptfs. From keepass I can open an URL to any desired program like described above (cmd://....). Keepass replaces the terms in { } with it's saved data like Passwords, Usernames... So cmd:///usr/bin/sirikali --mountfavorites --{PASSWORD} would be great.

mhogomchungu commented 3 years ago

I guess you are on windows.

  1. Set Store volume key in SiriKali secured storage system as explained here[1] and select "window's DPAPI" backend. Use an empty password if you do not want to see a SiriKali prompt when trying to access your volume key in the storage system.
  2. Add your favorite entry to the secured storage system.
  3. Your command should now be cmd:///usr/bin/sirikali -d PATH_TO_GOCRYPT_FOLDER -b windows_dpapi.
  4. Every time you run the command, sirikali will go look look for the password of the directory path you gave it in the secured stored system you also gave it.

[1] https://github.com/mhogomchungu/sirikali/wiki/Frequently-Asked-Questions#80-how-do-i-add-a-key-to-a-secured-storage-system

mhogomchungu commented 2 years ago

This should now be possible in the git version and the command should be something like

cmd:///usr/bin/sirikali -d {PATH_TO_VOLUME} -b clargs -w {PASSWORD}