Malaka

Protect your data

Malaka is a simple tool for digital self-defense

Lock any file into one .mlk file on your computer before you upload it to cloud storage or a USB drive. Malaka runs offline in Rust on desktop and in the terminal.

How it works
Pick a sample file to test the desktop app in your browser.
malaka-desktop
PDF
passport.pdf
1.8 MB · Original file stays untouched
Argon2id · 64 MiB
Strong passphraseOffline crack time, centuries

Built for ordinary folders, not vault software.

Most encryption tools ask you to maintain a separate cloud account, mount a virtual drive, or install kernel extensions. Malaka locks one file at a time so your folders stay simple.

Passports and tax records

No separate cloud vault.

Keep identity scans and tax returns inside the cloud folder you already back up. Malaka locks each file into one .mlk file that stays unreadable on Google Drive or iCloud until you unlock it on your computer.

2026-tax-return.pdf2026-tax-return.mlk

Family photos on shared clouds

No virtual drives or FUSE drivers.

Use a shared family storage plan or hand someone a hard drive without exposing private photos. Malaka does not mount a kernel volume or run a background daemon.

family-photos.zipfamily-photos.mlk

Sensitive work drafts

No accounts to create.

Copy a contract or draft onto a USB stick or shared folder with no sign-up. One .mlk file moves like any regular file, and anyone with the passphrase can unlock it with Malaka.

board-compensation.docxboard-compensation.mlk

Post-quantum ready

Malaka is built for a post-quantum world. It uses 256-bit symmetric encryption and Argon2id with no RSA or elliptic-curve key exchange, so files you lock today stay protected against future quantum computers.

XChaCha20-Poly1305
256-bit key · 192-bit nonce · Argon2id 64 MiB
~128-bit Grover margin
4D4C
9F2A
C810
E7B4
31D9
6A0E
B27F
04C1

Post-quantum symmetric architecture

Malaka uses symmetric encryption with no RSA or elliptic-curve key exchange, so Shor's algorithm does not apply to .mlk files. Argon2id derives each 256-bit key with 64 MiB of RAM, and zeroize::Zeroizing zeros key buffers on drop.

deny.toml · CI policy0 B outbound
reqwesthyperureqrustlsnative-tls
#![forbid(unsafe_code)]enforced

Offline by construction

CI fails the build if any HTTP or TLS client crate enters the dependency graph. Malaka runs without accounts, telemetry, or background daemons.

Malaka (Rust + GPUI)Native GPU
Electron / WebView apps~180 MB+

Rust + GPUI native speed

The desktop app renders on the GPU with gpui-ce and ships no Chromium runtime. Malaka streams 64 KiB chunks so large files do not fill RAM.

FIDO2
auth_mode 0x02

FIDO2 hardware keys next

Release 2 adds USB FIDO2 keys using hmac-secret and local PIN authentication. Both auth modes are already reserved in byte 5 of the .mlk v1 header.

alice.mlkUnlocked
UniFFI · malaka-core

Mobile apps in the pipeline

Planned iOS and Android apps use Expo and UniFFI to run the same Rust malaka-core engine. Files locked on desktop will unlock on mobile without format changes.

passport.pdf
Original stays untouched
Lock
passport.mlk
Extension hidden in Chunk 0

Hide original filenames and extensions

Every 64 KiB chunk binds the 56-byte header as AAD so truncation or reordering fails authentication. Storage providers see .mlk, not the original file extension.

LicenseAGPL-3.0-only
Wire SpecSPEC.md · v1
Threat ModelSECURITY.md
ChecksumsSHA256SUMS.txt

Open source and auditable

Malaka is licensed under AGPL-3.0-only with no expiration date. Read the source code, run the golden test vectors, or build from source with mise.

Faster in the terminal

If you work in the terminal, malaka-cli skips the desktop window and runs directly in your shell. It is written in Rust with Ratatui for keyboard navigation and uses the same malaka-core library as the desktop app.

Run malaka-cli with no arguments to open the terminal interface, or call lock, inspect, and unlock in shell scripts.

malaka-cli
v0.1.0-beta.2

CLI installation

Shell script for Linux and macOS, SHA-256 verified
curl -fsSL https://raw.githubusercontent.com/leonardobetti/malaka/main/scripts/install.sh | sh
Homebrew formula for malaka-cli
brew install --formula https://raw.githubusercontent.com/leonardobetti/malaka/main/packaging/homebrew/malaka-cli.rb
Build from source with mise and Cargo
mise install && mise exec -- cargo build --release --workspace

Don't trust, verify

SPEC.md and SECURITY.md document every cipher, chunk boundary, and offline rule in plain text. The Rust compiler and CI dependency policy enforce them.

Honest boundaries

  • No key recovery. If you forget your passphrase, nobody can unlock your file.
  • Not endpoint antivirus. Malaka protects files at rest and in transit, not against keyloggers already running on your device.
  • Public beta, v0.1.0-beta.2. Keep verified plaintext backups of irreplaceable files during beta.

Authenticated cipher

XChaCha20-Poly1305

Malaka encrypts files in 64 KiB chunks using a 256-bit key and a 192-bit random nonce. A 256-bit symmetric key keeps a 128-bit security margin against Grover's search bound.

Memory-hard key derivation

Argon2id, 64 MiB

Argon2id derives a separate key for each file from a 16-byte random salt and 64 MiB of RAM. That memory cost slows offline GPU and ASIC guessing.

Compile-time offline proof

deny.toml network ban

deny.toml blocks reqwest, hyper, ureq, rustls, and native-tls in CI. The binary ships with no HTTP or TLS client code.

Memory safety and wiping

#![forbid(unsafe_code)]

Core and CLI crates forbid unsafe Rust. Passphrases and derived keys live inside zeroize::Zeroizing buffers that zero RAM when dropped.

What comes next in Release 2

The .mlk v1 file format already reserves the header modes needed for mobile and hardware-key unlocking, so files you lock today stay forward-compatible.

iOS and Android apps

iOS and Android apps will run the same malaka-core Rust crate through UniFFI. A file locked on your computer will unlock on your phone.

FIDO2 hardware keys

Byte 5 of the .mlk v1 header reserves auth_mode 0x02 for USB FIDO2 keys using hmac-secret, so you can unlock files without typing a passphrase.

Local device PIN

Byte 5 of the .mlk v1 header reserves auth_mode 0x03 for local PIN unlock backed by device secure storage.

Ready when you are

Download Malaka Desktop or install malaka-cli. It is free, open source under AGPL-3.0-only, and ships with SHA-256 checksums.

Download Malaka
v0.1.0-beta.2
macOS Apple Silicon
Download ↓
macOS Intel
Download ↓
Or install Desktop + CLI with one command
curl -fsSL https://raw.githubusercontent.com/leonardobetti/malaka/main/scripts/install.sh | sh -s -- --version v0.1.0-beta.2 --with-desktop

Beta release v0.1.0-beta.2. Keep verified plaintext copies of irreplaceable data while beta releases are active.