GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - czerwonk/hakanai: A minimalist one-time secret sharing service. Share sensitive data through ephemeral links that self-destruct after a single view. No accounts, no tracking, just a simple way to transmit secrets that vanish like morning mist.

BranchesTags
Open more actions menu

Latest commit

 

History

1,195 Commits
1,195 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
cli
cli
 
 
docs
docs
 
 
fonts
fonts
 
 
helm/hakanai
helm/hakanai
 
 
icons
icons
 
 
lib
lib
 
 
server
server
 
 
typescript
typescript
 
 
wasm
wasm
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
CODEOWNERS
CODEOWNERS
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
banner-light.svg
banner-light.svg
 
 
banner.svg
banner.svg
 
 
docker-compose.yml
docker-compose.yml
 
 
flake.lock
flake.lock
 
 
flake.nix
flake.nix
 
 
grafana-dashboard.json
grafana-dashboard.json
 
 
logo.svg
logo.svg
 
 
package-lock.json
package-lock.json
 
 
share.shortcut
share.shortcut
 
 
workspace.nix
workspace.nix
 
 

Repository files navigation

Hakanai (はかない)

Banner

A minimalist one-time secret sharing service built on zero-knowledge principles.

Philosophy

Hakanai embodies the Japanese concept of transience - secrets that exist only for a moment before vanishing forever. No accounts, no tracking, no permanent storage. Just ephemeral data transfer with mathematical privacy guarantees and automatic expiration.

Core Principles

  • Zero-Knowledge: The server never sees your data. All encryption happens client-side.
  • Single View: Secrets self-destruct after one access. No second chances.
  • No Metadata: We store only encrypted bytes and an ID. Nothing else.
  • Minimalist: One function only - share secrets that disappear.
  • Content Integrity: Hash verification ensures secrets haven't been tampered with.

How It Works

  1. Your client (CLI or browser) encrypts the secret locally
  2. Sends only the ciphertext to our server
  3. You share the link with the decryption key (either embedded in URL or separately)
  4. Recipient views once, then it's gone forever

Enhanced Security Mode: With --separate-key, the secret URL and decryption key are provided separately, allowing you to share them through different communication channels for defense in depth.

Breaking Changes

With version 3.x hakanai has switched from using UUIDs as secret identifiers to ULIDs. This allows for shorter URLs. Secret URLs created with previous versions below 3.x will not work anymore. Also the secret storage format has changed. Secrets are now encoded using MessagePack instead of JSON. This change reduces secret size significantly since binary data has not to be base64-encoded anymore.

Quick Start

Docker Compose (Recommended)

# Start the services
docker compose up -d

# The server will be available at http://localhost:8080

From Source

# Prerequisites: Rust 1.89+, Node.js, Redis
git clone https://github.com/czerwonk/hakanai
cd hakanai
npm install
cargo build --release --workspace

# Start server (admin token will be generated and logged)
./target/release/hakanai-server

Usage Examples

Send a Secret (CLI)

# Send from stdin
echo "my secret data" | hakanai send

# Send a file
hakanai send --file document.pdf

# Send multiple files (creates ZIP archive)
hakanai send -f file1.txt -f file2.pdf -f image.png

# Enhanced security (separate key)
echo "sensitive data" | hakanai send --separate-key

# With access restrictions
echo "restricted secret" | hakanai send --allow-ip 192.168.1.0/24 --allow-country US

Retrieve a Secret (CLI)

# Get using the URL returned by send
hakanai get https://hakanai.example.com/s/ulid-here

# Get with separate key (when --separate-key was used)
hakanai get https://hakanai.example.com/s/ulid-here --key base64-key

# Save to custom location
hakanai get https://hakanai.example.com/s/ulid-here --output-dir /downloads/

Web Interface

Visit your server URL (e.g., http://localhost:8080) to:

  • Create new secrets with text or file uploads
  • Apply access restrictions (IP, country, ASN, passphrase)
  • Retrieve secrets directly in your browser
  • Use clipboard-based sharing for automation

Security Model

We implement true client-side encryption - your secrets are encrypted before leaving your device and decrypted only after retrieval. The server is just a temporary dead drop that forgets everything.

Content Integrity: All secrets include SHA-256 hash validation (truncated to 128 bits for manageable URLs) to detect tampering.

Note: This project focuses on application-layer encryption. Transport security (HTTPS/TLS) should be handled by a reverse proxy in production.

Documentation

📚 Complete documentation is available in the docs/ directory:

  • Installation Guide - All installation methods (Helm, Docker, source)
  • CLI Documentation - Complete command-line reference
  • API Reference - REST API documentation and examples
  • Configuration - Server and CLI configuration options
  • Customization - Asset overrides and white-labeling
  • Deployment - Production deployment and architecture
  • Development - Building, testing, and contributing
  • Observability - OpenTelemetry metrics, traces, and monitoring

Live API Docs: Visit /docs on your running server for interactive OpenAPI documentation.

Key Features

  • Zero-knowledge encryption (AES-256-GCM, client-side)
  • Multiple file support with automatic ZIP archiving
  • Access restrictions (IP/CIDR, country, ASN, passphrase)
  • Web interface with dark/light mode and i18n support
  • Flexible authentication (tokens, anonymous access)
  • Content integrity verification with embedded hashes
  • OpenTelemetry observability for production monitoring
  • Mobile-friendly with QR code support and iOS Shortcuts integration

Contributing

Contributions are welcome! Please see docs/DEVELOPMENT.md for setup instructions and guidelines.

License

Licensed under the Apache License, Version 2.0.

See NOTICE for attribution requirements.

About

A minimalist one-time secret sharing service. Share sensitive data through ephemeral links that self-destruct after a single view. No accounts, no tracking, just a simple way to transmit secrets that vanish like morning mist.

hakanai.link/docs

Topics

ephemeralone-time-secretpassword-sharingsecret-sharingsharing-secretstemporary-secretszero-knowledge

Resources

Readme
Apache-2.0 license

Security policy

Security policy
Activity

Stars

13 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.