Native, driverless, high-security gocryptfs encrypted vault manager for macOS, powered by Apple's modern FSKit framework.
Zero kexts · Zero macFUSE · Zero sudo · Zero security compromises.
SIP (System Integrity Protection) remains fully enabled — no Reduced Security required, no FUSE-T needed.
Mounting encrypted vaults on Apple Silicon Macs has historically forced users into difficult trade-offs:
- macFUSE / Kernel Extensions: Requires rebooting into macOS Recovery and downgrading system security to "Reduced Security", exposing the entire machine to kernel-level vulnerabilities and stability panics.
- Proprietary Commercial Wrappers: Closed-source black boxes cannot be audited for cryptographic backdoors, zero-day vulnerabilities, or silent data leakage.
- Container-based Encryption (e.g. VeraCrypt, DMG): Modifying a single 10 KB file causes gigabytes of whole-disk images to re-upload on cloud sync drives (Dropbox, iCloud, OneDrive).
GocryptKit is built from the ground up for modern macOS:
- Zero Driver Installs: Built on Apple's first-party FSKit (User-space File System) architecture.
- Per-File Encryption: Fully compatible with the battle-tested gocryptfs format. Modifying one file only syncs that single encrypted chunk.
- 100% Open Source & Auditable: Audited memory wiping (
memset_s), zero credential persistence in shell history, and strict TLV tagged Keychain transport.
| Solution | Open Source | Read / Write | Architecture | SIP Intact (No Reduced Security) | Cloud Sync Friendly (Per-File Encryption) | Cross-Platform (Linux / Android) |
|---|---|---|---|---|---|---|
| GocryptKit | ✅ Yes (GPLv3) | ✅ Native Full R/W | Apple Native FSKit | ✅ Yes (Fully Intact) | ✅ Yes (gocryptfs standard) | ✅ Yes (Linux / DroidFS) |
| macFUSE + gocryptfs | ✅ Yes | ✅ Full R/W | Kernel Extension (kext) |
❌ No (Requires Recovery downgrade) | ✅ Yes | ✅ Yes |
| MyCryptFS | ❌ No (Commercial) | ✅ Full R/W | File Provider API | ✅ Yes | ✅ Yes | |
| Cryptomator | ✅ Yes | ✅ Full R/W | FUSE-T / WebDAV | ✅ Yes | ✅ Yes | ❌ Proprietary format (Non-gocryptfs) |
| VeraCrypt | ✅ Yes | ✅ Full R/W | Virtual Disk + macFUSE | ❌ No (Requires Recovery downgrade) | ❌ No (Full container re-upload) | ✅ Yes |
| macOS Encrypted DMG | ✅ Full R/W | APFS Sparse Image | ✅ Yes | ❌ No (Frequent sync conflicts) | ❌ Mac only |
- Apple Native Integration: Built on macOS FSKit. Mounted decrypted volumes appear natively in Finder, Terminal, Spotlight, and standard open/save file dialogs.
- Hardened Credential Security:
- Burn-after-reading: TLV-tagged Keychain protocol (
VCP1) safely passes credentials and physically scrubs them immediately upon volume mount. - Memory Scrubbing: Explicit in-memory scrubbing (
memset_s) for MasterKeys, passwords, and scrypt buffers to eliminate plaintext leaks in swap or crash dumps. - Leak-proof CLI: Never exposes passwords in process tables (
ps) or shell history (interactive masked input or--password-stdinpipeline).
- Burn-after-reading: TLV-tagged Keychain protocol (
- Physical Handle Concurrency Isolation: Independent file descriptors for read and write paths with granular reader-writer synchronization, eliminating kernel
EBADFrace conditions. - Native Extended Attributes (xattr): Full macOS xattr support encrypted via EME + DirIV (AES-GCM), preventing
._*AppleDouble file pollution on cloud storage. - Polished MenuBar & App Experience:
- Live menu bar status item with dynamic lock state icons (
lock.open.fillwhen mounted). - Unmount debounce, mutual exclusion locks, and intelligent aggregated conflict dialog when volumes encounter
EBUSY. - Modern SwiftUI client with real-time kernel mount table synchronization (
getfsstat&NSWorkspacemount notifications).
- Live menu bar status item with dynamic lock state icons (
v1.4.2 — Accurate Error Codes, rolling up the v1.3.9 – v1.4.1 security and data-integrity fixes (macOS Apple Silicon)
→ Download GocryptKit-1.4.2.dmg on GitHub Releases
| Property | Value |
|---|---|
| Package | GocryptKit-1.4.2.dmg |
| SHA-256 | a9d9e51f0e42f87086457fce4b1b1b40f442666690ebed17f4aa1fbe75ff0931 |
| Architecture | Apple Silicon (arm64-only) |
| Code Signing | Developer ID Application (Team QBFSP2CHNW), signed but not notarized |
Not notarized since v1.3.9. The maintainer's Apple Developer Program membership has lapsed, so builds after v1.3.8 are signed with the Developer ID certificate but carry no Apple notarization ticket. Gatekeeper blocks the first launch of such an app: in
/Applications, right-clickGocryptKit.app→ Open, or click Open Anyway under System Settings → Privacy & Security. Everything else, the file system extension included, works as before. v1.3.8 is the last notarized build, but it lacks every fix listed in CHANGELOG.md from v1.3.9 on.
Verify the download:
shasum -a 256 GocryptKit-1.4.2.dmg
# after dragging the app to /Applications: the signature must be valid and belong to team QBFSP2CHNW
codesign --verify --deep --strict --verbose=2 /Applications/GocryptKit.app
codesign -dv /Applications/GocryptKit.app 2>&1 | grep TeamIdentifier- Download and drag
GocryptKit.appto/Applications. - Launch
GocryptKit.apponce. Gatekeeper blocks the first launch because the build is not notarized (see Download & Releases): right-click the app → Open, or click Open Anyway under System Settings → Privacy & Security. - Enable the File System Extension:
System Settings → General → Login Items & Extensions → Scroll to bottom → File System Extensions → Toggle GocryptKit ON.
- In the app:
- Click "Add Existing Vault…" to mount an existing gocryptfs directory (e.g. from Linux or cloud sync).
- Click "Create New Vault…" to initialize a new encrypted directory.
- Enter your password and click "Mount". The decrypted filesystem is instantly accessible in Finder!
The application bundle contains a full-featured CLI interface for headless environments or automated scripting:
# Initialize a new encrypted vault interactively (secure masked input)
/Applications/GocryptKit.app/Contents/MacOS/GocryptKit init <empty-dir>
# Scripted automated vault creation via stdin pipeline
echo "your-password" | /Applications/GocryptKit.app/Contents/MacOS/GocryptKit init <empty-dir> --password-stdin
# Mount an encrypted vault
/Applications/GocryptKit.app/Contents/MacOS/GocryptKit mount <cipher-dir> <mountpoint>
# Unmount a vault (supports -f / --force)
/Applications/GocryptKit.app/Contents/MacOS/GocryptKit umount <mountpoint>
/Applications/GocryptKit.app/Contents/MacOS/GocryptKit umount -f <mountpoint>
# Check FSKit extension status
/Applications/GocryptKit.app/Contents/MacOS/GocryptKit status
⚠️ Security Warning: For privacy and security, the plaintext--password <string>argument has been completely removed. Automated scripts should exclusively use the--password-stdinstream.
v1.4.2 is the first public release since v1.3.8 and ships six versions (v1.3.9 – v1.4.2) of security and data-integrity work:
- Data integrity: a file removed or replaced by a rename while still open keeps its handles. Writes no longer bring a deleted file back or land in the file that took over its name (which could leave that file unreadable after a remount). Two racing
O_EXCLcreates can no longer both succeed. File IDs and content locks are shared across handles of the same file. - Vault key protection: on
-plaintextnamesvaults,gocryptfs.confcan no longer be deleted, replaced by a rename or edited through the mounted volume. - Upstream xattr interoperability: extended attribute names are encrypted with upstream gocryptfs's fixed IV, so
gocryptfs -fsckand Linux gocryptfs read them. Attributes written by v1.3.9 or earlier stay readable and are converted the next time they are written. - Tampered vault folders: oversized planted extended attributes, abusive scrypt parameters, planted FIFOs, a
gocryptfs.confthat is a symlink into a mounted vault and vaults nested inside a mounted vault are refused before they can crash or hang the file system extension. - Accurate error codes: the mounted volume reports the error it actually ran into (
EACCES,ENOENT,ENOSPC,ENOTEMPTY, …) instead of a generic I/O error, so backup and sync tools react correctly. - File attributes: modification, access and creation times and flags take effect; the append-only flag is refused instead of leaving a file unwritable; read-only new files stay writable to the program that created them; copying a mode 0444 file no longer fails.
- CLI and keychain hygiene: unknown options are errors,
--password=…never echoes the value, an interrupted mount removes its credential, the default mount root~/Volumesis private (0700). - Text fields: system text replacement and inline predictions are off in all text fields, so "show password" cannot create a vault with a password you did not type.
- Quitting: the app only quits when none of your volumes is mounted and offers to force an unmount only when that lets it quit.
👉 For the complete per-version log (v0.1.0 to v1.4.2), see CHANGELOG.md.
- Operating System: macOS 26.0+ (Apple Silicon)
- Build Tools: Xcode 26+, Go 1.25+, XcodeGen,
create-dmg - Testing Tools:
ffmpeg(with libmp3lame / libx264)
git clone https://github.com/maxing-labs/GocryptKit.git
cd GocryptKit
# 1. Build the Go core engine (darwin arm64 c-archive)
Engine/build-darwin.sh
# 2. Package into an XCFramework
Engine/make-xcframework.sh
# 3. Generate Xcode project from project.yml
xcodegen generate
# 4. Build Release application
xcodebuild -project GocryptKit.xcodeproj -scheme GocryptKit \
-configuration Release buildNote for External Contributors:
project.ymlincludes maintainer signing defaults. When building locally with your personal Apple ID, changeDEVELOPMENT_TEAMinproject.ymlor select your personal team under Xcode project signing settings.
Scripts/build-dmg.shOutput package will be generated at build/dist/GocryptKit-1.4.2.dmg.
# Every layer that needs no mount: Go engine (go vet + go test -race), VaultCore (156 tests),
# extension callbacks (45 tests; --tsan repeats them under Thread Sanitizer) and the host scripts.
# Logs go to build/test-logs/<layer>.log.
Scripts/test.sh fast [--tsan]
# End-to-end suite on a real mount (114 checks). Needs the app installed in /Applications with
# its extension enabled, and refuses to start while any gocryptfs volume is mounted.
Tests/e2e/make-samples.sh
Scripts/test.sh mountThis project is licensed under the GNU General Public License v3.0 (GPL-3.0) with the Apple App Store Exception (Version 1.0).
The underlying engine Engine/libgocryptfs is derived from upstream gocryptfs and is licensed under the MIT License.
The folder-key icon glyph is designed by Flaticon (Icon ID: 10303679) and used under the Flaticon Free License. See Art/ATTRIBUTION.md for details.





