Self hosted, easy to install end to end encrypted storage drive
  • Rust 51.2%
  • TypeScript 32.9%
  • Vue 14.6%
  • CSS 0.4%
  • Just 0.3%
  • Other 0.4%
Find a file
Tibor Hudik 4e7a5b75a9
Reshoot the screenshot against a realistic drive
The previous capture was seeded with camera roll and download folder names
(landscape-1621424598683-1125.jpg, image_D01C6CA9-...mov) on an account holding
116 MB, which reads as a test account rather than a product. The drive now holds
documents, invoices, photos and notes under names a person would use, and the
frame catches a download in flight so the transfer panel shows real throughput.
2026-07-29 11:14:18 +02:00
.cargo transfer WASM crate, video preview, HEIC support, Playwright e2e, docs overhaul (#145) 2026-03-26 08:32:42 +01:00
.github fix: incomplete uploads no longer read back as decryption failures (#194) 2026-07-28 19:55:30 +02:00
admin Localization (i18n): English, French, German, Croatian (#187) 2026-07-25 14:37:11 +02:00
auth Localization (i18n): English, French, German, Croatian (#187) 2026-07-25 14:37:11 +02:00
config Crypto v2: post-quantum key wrapping, OPAQUE login, Curve25519 identities (#182) 2026-07-17 11:40:09 +02:00
context feat(shares): account-to-account sharing + instance quota & readiness (#173) 2026-07-01 06:49:53 +02:00
cryptfns Crypto v2: post-quantum key wrapping, OPAQUE login, Curve25519 identities (#182) 2026-07-17 11:40:09 +02:00
editor fix release (#157) 2026-04-21 23:09:36 +02:00
email complete Actix 4.11 upgrade, fix clippy warnings, and consolidate dep… (#142) 2025-12-22 21:05:58 +01:00
entity Localization (i18n): English, French, German, Croatian (#187) 2026-07-25 14:37:11 +02:00
error feat(shares): account-to-account sharing + instance quota & readiness (#173) 2026-07-01 06:49:53 +02:00
fs fix: incomplete uploads no longer read back as decryption failures (#194) 2026-07-28 19:55:30 +02:00
hoodik fix: incomplete uploads no longer read back as decryption failures (#194) 2026-07-28 19:55:30 +02:00
links fix: incomplete uploads no longer read back as decryption failures (#194) 2026-07-28 19:55:30 +02:00
migration Localization (i18n): English, French, German, Croatian (#187) 2026-07-25 14:37:11 +02:00
package Feature/build process (#117) 2025-03-23 17:55:10 +01:00
settings Crypto v2: post-quantum key wrapping, OPAQUE login, Curve25519 identities (#182) 2026-07-17 11:40:09 +02:00
shares Localization (i18n): English, French, German, Croatian (#187) 2026-07-25 14:37:11 +02:00
storage fix: incomplete uploads no longer read back as decryption failures (#194) 2026-07-28 19:55:30 +02:00
transfer UX and performance improvements (#185) 2026-07-23 18:53:55 +02:00
util Localization (i18n): English, French, German, Croatian (#187) 2026-07-25 14:37:11 +02:00
web fix: incomplete uploads no longer read back as decryption failures (#194) 2026-07-28 19:55:30 +02:00
.dockerignore Adding readmes and fixing an issue with dockerfile 2023-05-04 20:04:05 +02:00
.env.e2e SPlit storage to move fs into a separate repo; Modify module visibility (#24) 2023-05-30 17:07:23 +02:00
.env.example feat(shares): account-to-account sharing + instance quota & readiness (#173) 2026-07-01 06:49:53 +02:00
.gitignore fix: hide register UI when disabled and bump dark-mode contrast (#162) 2026-05-10 09:54:07 +02:00
.nvmrc Adding TLS mode support and updating email config (#138) 2025-11-08 21:29:55 +01:00
Cargo.lock fix: incomplete uploads no longer read back as decryption failures (#194) 2026-07-28 19:55:30 +02:00
Cargo.toml feat(shares): account-to-account sharing + instance quota & readiness (#173) 2026-07-01 06:49:53 +02:00
CLA.md fix: incomplete uploads no longer read back as decryption failures (#194) 2026-07-28 19:55:30 +02:00
DEVELOPMENT.md docs: list bacon as dev prerequisite (#176) 2026-07-15 19:14:23 +02:00
docker-compose.yml feat(shares): account-to-account sharing + instance quota & readiness (#173) 2026-07-01 06:49:53 +02:00
Dockerfile Feature/build process (#117) 2025-03-23 17:55:10 +01:00
Justfile UX and performance improvements (#185) 2026-07-23 18:53:55 +02:00
LICENSE.md Adding readmes and fixing an issue with dockerfile 2023-05-04 20:04:05 +02:00
package.json fix release (#157) 2026-04-21 23:09:36 +02:00
README.md docs: describe Hoodik Cloud as running on publicly auditable code 2026-07-28 20:23:28 +02:00
rust-integration Fixing registration limitation settings (#63) 2023-09-04 20:25:42 +02:00
rust-toolchain.toml ci: pin Rust toolchain, fix clippy drift, retry flaky e2e (#181) 2026-07-15 16:28:15 +02:00
rust-unit 28 rename files (#34) 2023-06-27 19:52:56 +02:00
screenshot.png Reshoot the screenshot against a realistic drive 2026-07-29 11:14:18 +02:00
SECURITY.md Fixing dockerfile, updating readme and adding security file (#37) 2023-07-04 19:43:41 +02:00
web-e2e 28 rename files (#34) 2023-06-27 19:52:56 +02:00
yarn.lock Localization (i18n): English, French, German, Croatian (#187) 2026-07-25 14:37:11 +02:00

Hoodik

Hoodik

CI Docker Hub CC BY-NC 4.0 License

Hoodik is a lightweight, self-hosted, end-to-end encrypted cloud storage server. All encryption and decryption happens in your browser — the server never sees your plaintext data. Built with Rust (Actix-web) on the backend and Vue 3 on the frontend.

🌐 hoodik.io — Website  |  ☁️ Hoodik Cloud  |  📱 Android App  |  🍎 iOS & macOS App  |  Self-Hosting Guide

Hoodik screenshot


Features

  • End-to-end encryption — files are encrypted in the browser with AEGIS-128L before upload and decrypted after download; file keys are wrapped with a quantum-resistant X25519 + ML-KEM-768 hybrid (RSA on legacy accounts)
  • Secure search — file metadata is tokenized and hashed so the server can match search queries without storing plaintext names
  • Encrypted notes — create and edit rich markdown notes with a WYSIWYG editor; content is encrypted, auto-saved, and searchable just like uploaded files
  • Public sharing links — share files via a link; the recipient decrypts everything in their browser with the key in the URL fragment, and the server never decrypts a public link
  • Two-factor authentication — optional TOTP-based 2FA per user
  • Admin dashboard — manage users, sessions, invitations, and application settings
  • Chunked transfers — files are split into encrypted chunks for concurrent upload/download
  • SQLite or PostgreSQL — SQLite out of the box, PostgreSQL via a single environment variable
  • S3-compatible storage — store encrypted chunks on any S3-compatible service (AWS, MinIO, Backblaze B2, Wasabi) instead of local disk
  • Docker-first — single container deployment; multi-arch images (amd64, armv6, armv7, arm64)

How encryption works

File storage

Each user gets an Ed25519 identity key pair (for signing) and an X25519 + ML-KEM-768 wrapping key pair (for wrapping file keys) on registration. File keys are wrapped under both algorithms at once — a hybrid that stays secure even if a future quantum computer breaks the elliptic-curve half. Login uses OPAQUE, so your password never leaves the device; the private keys are stored envelope-encrypted under a key derived from the OPAQUE export_key, which only your password can produce — the server cannot read them. Accounts created before this scheme used an RSA-2048 key pair and are still supported; they migrate to the new keys automatically on the next login.

⚠️ Store your private key somewhere safe (e.g. a password manager). If you forget your password, the private key is the only way to recover your account and decrypt your files.

When you upload a file:

  1. A random symmetric key is generated for the file (key size depends on the cipher).
  2. The file is encrypted chunk-by-chunk with that key using the file's cipher (AEGIS-128L unless the admin picks a different default in the settings).
  3. The cipher identifier and the encrypted key are stored in the database alongside the file, so old files can always be decrypted with the correct algorithm even after the default cipher changes.

Chunks move over one of two HTTP endpoints, both client-side encrypted:

  • POST /api/storage/{file_id}?chunk=N&checksum=... — upload one encrypted chunk; the server verifies the CRC16 per chunk and stores it.
  • POST /api/storage/{file_id}?format=tar — upload many chunks in one request as an uncompressed tar archive whose entries are named {index:06}.enc. Fewer HTTP round-trips on slow networks; the per-chunk integrity check is skipped (TLS + the file-level hash still cover transport and content).

Download mirrors the same split: GET /api/storage/{file_id}?chunk=N streams a single chunk, while GET /api/storage/{file_id}?format=tar streams every chunk as a single tar archive.

Searchable metadata (file name, etc.) is tokenized, hashed, and stored as opaque tokens. When you search, the same operation is applied to your query and the hashes are matched server-side — no plaintext ever leaves the browser.

When you share a file:

  1. A random link key is generated.
  2. The file metadata and file key are encrypted with the link key.
  3. The link key itself is wrapped under your own current key type (the X25519 + ML-KEM-768 hybrid on current accounts, RSA on legacy accounts) so only you can recover it.
  4. The link key is appended to the share URL as a fragment: https://…/links/{id}#link-key.

The recipient's browser uses the fragment to decrypt the metadata and file key locally and does all decryption itself — the link key in the fragment never reaches the server. The server only ever serves encrypted bytes and never decrypts anything for a public link.

Cryptographic primitives

Primitive Algorithm
Identity / signing Ed25519 (legacy accounts: RSA-2048 PKCS#1)
Key wrapping hybrid X25519 + ML-KEM-768 (post-quantum) — HKDF-SHA256 combiner, AEGIS-256 wrap AEAD (legacy accounts: RSA-2048)
Symmetric (default) AEGIS-128L — hardware-accelerated AEAD via WASM SIMD128/relaxed-simd
Symmetric (supported) AEGIS-256, Ascon-128a, ChaCha20-Poly1305
Login OPAQUE (RFC 9807, ristretto255-SHA512), Argon2id KSF — password never crosses the wire
Private-key wrap envelope encryption under a KEK derived (HKDF-SHA512) from the OPAQUE export_key

The cipher used to encrypt each file is stored in the database (files.cipher), so the correct algorithm is always used for decryption regardless of what the current default is.


Hoodik Cloud

If you'd rather not run a server, Hoodik Cloud is the managed version, run by us on the same publicly auditable code. The encryption is identical — files are encrypted in the browser and the server only ever stores ciphertext. There is no lock-in: you can export your whole instance at any time and get a runnable copy of Hoodik with your encrypted data inside, ready to self-host with Docker.


Getting started

Docker (quickstart)

docker run --name hoodik -d \
  -e DATA_DIR='/data' \
  -e APP_URL='https://my-app.example.com' \
  --volume "$(pwd)/data:/data" \
  -p 5443:5443 \
  hudik/hoodik:latest

This runs with a self-signed TLS certificate generated automatically in DATA_DIR. For production, provide your own certificate (see Configuration) or put Hoodik behind a reverse proxy such as Nginx Proxy Manager.

Docker with email and custom TLS

docker run --name hoodik -d \
  -e DATA_DIR='/data' \
  -e APP_URL='https://my-app.example.com' \
  -e SSL_CERT_FILE='/data/my-cert.crt.pem' \
  -e SSL_KEY_FILE='/data/my-key.key.pem' \
  -e MAILER_TYPE='smtp' \
  -e SMTP_ADDRESS='smtp.gmail.com' \
  -e SMTP_USERNAME='you@gmail.com' \
  -e SMTP_PASSWORD='your-app-password' \
  -e SMTP_PORT='465' \
  -e SMTP_DEFAULT_FROM_EMAIL='you@gmail.com' \
  -e SMTP_DEFAULT_FROM_NAME='Hoodik Drive' \
  --volume "$(pwd)/data:/data" \
  -p 5443:5443 \
  hudik/hoodik:latest

Tip: Set JWT_SECRET to a stable random string so sessions survive container restarts.


Configuration

All configuration is done through environment variables. A full reference is in .env.example.

Core

Variable Default Description
DATA_DIR (required) Directory for the database and stored files
DATABASE_URL (SQLite) PostgreSQL connection string — omit to use SQLite
APP_URL https://localhost:5443 Public URL of the application
APP_CLIENT_URL APP_URL URL of the frontend (set to Vite dev server during development)
HTTP_PORT 5443 Port the server listens on
HTTP_ADDRESS localhost Bind address (0.0.0.0 in Docker)

Database note: SQLite and PostgreSQL databases are not interchangeable. Switching after data has been written will result in data loss.

TLS

Variable Default Description
SSL_DISABLED false Disable TLS entirely — for development/testing only
SSL_CERT_FILE DATA_DIR/hoodik.crt.pem Path to TLS certificate (auto-generated self-signed cert if missing)
SSL_KEY_FILE DATA_DIR/hoodik.key.pem Path to TLS private key (auto-generated if missing)

Authentication & sessions

Variable Default Description
JWT_SECRET (random) Secret for signing JWTs — set this or all sessions are invalidated on restart
LONG_TERM_SESSION_DURATION_DAYS 30 How many days an idle session stays alive
SHORT_TERM_SESSION_DURATION_SECONDS 120 How many seconds the short-lived access token lives; refreshed automatically while the user is active
SESSION_COOKIE hoodik_session Name of the session cookie
REFRESH_COOKIE hoodik_refresh Name of the refresh token cookie
COOKIE_HTTP_ONLY true Hide the session cookie from JavaScript
COOKIE_SECURE true Only send cookies over HTTPS
COOKIE_SAME_SITE Lax SameSite policy: Lax, Strict, or None
COOKIE_DOMAIN (from APP_URL) Override the cookie domain when your setup requires it

Cross-domain / multi-domain setups — USE_HEADERS_FOR_AUTH

By default, Hoodik uses HttpOnly cookies for authentication. If your frontend and backend are on different domains (or you want to access the API from a separate app), cookies won't work reliably. Set:

USE_HEADERS_FOR_AUTH=true

With this enabled:

  • The server issues tokens via response headers instead of cookies.
  • The browser stores the tokens in localStorage rather than HttpOnly cookies, making them accessible to JavaScript.
  • Each request must include the token in the Authorization: Bearer <token> header.

Security note: localStorage-based tokens are accessible to any JavaScript on the page (XSS risk). Only enable this when a cookie-based setup is not possible. When using a single domain, leave it at the default false.

Email (SMTP)

When MAILER_TYPE=none (the default), accounts are activated automatically and no emails are sent. Set MAILER_TYPE=smtp to enable email verification and file-share notifications.

Variable Default Description
MAILER_TYPE none smtp to enable email, none to disable
SMTP_ADDRESS SMTP server hostname
SMTP_USERNAME SMTP login
SMTP_PASSWORD SMTP password
SMTP_PORT 465 SMTP port (TLS mode is auto-detected from the port if SMTP_TLS_MODE is not set)
SMTP_TLS_MODE (auto) implicit (port 465), starttls (port 587), or none (port 25)
SMTP_DEFAULT_FROM_EMAIL Sender email address
SMTP_DEFAULT_FROM_NAME Sender display name (optional, defaults to Hoodik)

Storage provider

By default, encrypted file chunks are stored on the local filesystem inside DATA_DIR. Set STORAGE_PROVIDER=s3 to use any S3-compatible object storage instead.

Variable Default Description
STORAGE_PROVIDER local local or s3
S3_BUCKET Bucket name
S3_REGION us-east-1 AWS region
S3_ENDPOINT (AWS default) Custom endpoint for S3-compatible services (MinIO, Backblaze B2, Wasabi, etc.)
S3_ACCESS_KEY Access key ID
S3_SECRET_KEY Secret access key
S3_PATH_STYLE false Path-style addressing (required for MinIO)
S3_PREFIX Optional key prefix to namespace objects within a shared bucket

Note: DATA_DIR is still required when using S3 — it holds the SQLite database (if not using PostgreSQL) and other local state. Only the encrypted file chunks move to S3.

Example with MinIO:

docker run --name hoodik -d \
  -e DATA_DIR='/data' \
  -e APP_URL='https://my-app.example.com' \
  -e STORAGE_PROVIDER='s3' \
  -e S3_BUCKET='hoodik' \
  -e S3_ENDPOINT='http://minio:9000' \
  -e S3_ACCESS_KEY='minioadmin' \
  -e S3_SECRET_KEY='minioadmin' \
  -e S3_PATH_STYLE='true' \
  --volume "$(pwd)/data:/data" \
  -p 5443:5443 \
  hudik/hoodik:latest

Migrating from local storage to S3

If you already have data stored locally and want to switch to S3:

Important: Stop the Hoodik server before running the migration to avoid data inconsistencies. If files are being uploaded while chunks are being migrated, some chunks may be missed.

  1. Stop the running Hoodik instance.

  2. Add the S3 environment variables to your docker-compose.yml (keep STORAGE_PROVIDER=local for now).

  3. Run the migration:

    docker exec hoodik hoodik migrate-storage
    

    Or as a one-off container:

    docker run --rm \
      -v hoodik-data:/data \
      -e DATA_DIR=/data \
      -e S3_BUCKET=my-bucket \
      -e S3_REGION=eu-central-1 \
      -e S3_ACCESS_KEY=... \
      -e S3_SECRET_KEY=... \
      hudik/hoodik migrate-storage
    

    The command uploads all chunk files from DATA_DIR to S3. It is idempotent — already-uploaded files are skipped, so it is safe to re-run if interrupted.

  4. Set STORAGE_PROVIDER=s3 and restart:

    docker compose up -d
    
  5. Verify everything works. The local chunk files can be kept as a backup until you are confident.


Development

See DEVELOPMENT.md for setup instructions, available just recipes, testing, and CI.


License

CC BY-NC 4.0 — free for personal and non-commercial use. For commercial licensing, contact hello@hudik.eu.


Authors

Created and maintained by Tibor Hudik.

Community patches are welcome and appreciated. Everyone who has sent one is listed in the contributors graph.

Logo design by Nikola Matošević — Your Dear Designer ❤️