A simple GUI for gocryptfs.
Cloak is a simple GUI for gocryptfs built with Golang and web tech. It works on macOS and Linux.
Features:
- A simple UI for managing your gocryptfs vaults, just like Cryptomator.
- Password changing / password resetting (with master key).
- Warn you about password strength.
- Fast to launch or quit.
- Internationalization. Current supported languages:
- English
- Simplified Chinese
UI / interaction mimicked from Cryptomator.
- Download prebuilt binaries from releases page.
- For Linux users, set executable permission for the
AppImagefile (alternatively you can usechmod +x Cloak*.AppImage), then just run it. - For macOS users, after decompressing the ZIP archive, you might need to run
xattr -d -r com.apple.quarantine Cloak.appin Terminal, otherwise GateKeeper would refuse to run the app. - You can open the UI or quit the app via
Openmenu item of the tray icon (or menubar icon).
- Vault list is stored at:
$XDG_DATA_HOME/Cloakon Linux. If$XDG_DATA_HOMEis not set, it falls back to$HOME/.local/share.~/Library/Application Support/Cloakon macOS, see Apple's Library Directory Details
- Configuration file is stored at:
$XDG_CONFIG_HOME/Cloakon Linux. If$XDG_CONFIG_HOMEis not set, it falls back to$HOME/.config.~/Library/Application Support/Cloakon macOS.
- Log files are stored at:
$XDG_DATA_HOME/Cloak/logson Linux.~/Library/Logs/Cloakon macOS.
Before 0.8.0, Cloak store all its data and log files in ~/.cloaklet.cloak directory on Linux.
By running a new version of Cloak, they get moved to the new directories.
Cloak automatically clears log file content each time it starts up. Sensitive information like vault passwords or master keys are never logged.
I wrote a similar GUI called Cloaklet using QML + Golang. However, I don't enjoy developing in QML at all, and quickly ran into some issues which I can't resolve. After that I went back to use Cryptomator, but its UI feels slow and somehow inconsistent. This time I got an idea from one of my early projects to use web browser as UI renderer, thus this new project.
Notice: you have to use a running instance of macOS, either a VM or a real Apple computer.
- Install Xcode related stuff with
xcode-select --install. - Install frontend dependencies:
cd frontend && npm install. - Run
go run build.go buildin project root, and it should create theCloak.appbundle. - Double click to start the app.
- Install required libraries:
sudo apt install libappindicator3-dev gcc libgtk-3-dev libxapp-dev. - Install frontend dependencies:
cd frontend && npm install. - Run
go run build.go buildand it should produce an AppImage binary.
The AppImage binary includes all required libraries and tools, so you can run it right away.
The frontend (UI) project resides in frontend directory. It's a standard Vue project managed by vue-cli.
- Install dependencies:
npm installinsidefrontenddirectory. - Simply run
npm run serveinsidefrontenddirectory. - You can also run the
servetask from vue-cli UI, runvue uito get started.
You should build the frontend project first so the backend can find assets for the UI.
- Inside the
frontenddirectory, runnpm run build. - Run
go generate ./...to generate necessary source codes. - To run the app, simply invoke
go run .in the project root.
gocryptfsrequiresFUSEto function. For macOS please installOSXFUSE(now macFUSE).- Windows is not supported, because
gocryptfsdoes not work on Windows. - Avoid committing
statikmodule because it contains large blob of files produced by the frontend project. - If you are building the app yourself, missing
libxapp-devwould not result in error; But when running the built AppImage on Linux Mint, menu item will lose highlighting. - You should install
xdg-openon Linux, otherwise drive revealing will not work.
GPL v3, see LICENSE file.