# sh-dv/hat.sh

Encrypt and Decrypt files securely in your browser.

Repository: https://github.com/sh-dv/hat.sh
Canonical: https://ross.abutalabs.com/products/hatsh
Homepage: https://hat.sh
Language: JavaScript
License: MIT
License Family: permissive
Topics: encryption, file-encryption, javascript, client-side, serverless, decryption, encryption-decryption, browser, in-browser, xchacha20-poly1305, xchacha20, libsodium, cryptography
Last push: 2024-07-17T14:20:14+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2663, "days_push": 777, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2291, forks 273 (observed 2026-08-28T04:06:34.919247+00:00)

## What it is
Hat.sh is a browser-based web application for secure local file encryption and decryption using XChaCha20-Poly1305 with chunked streaming via libsodium. It supports password-based and asymmetric key encryption entirely client-side, with no data ever sent to a server.

## Use cases
- encrypt files in the browser without uploading them
- decrypt files with a password locally
- share encrypted files securely with a key exchange
- encrypt large files with chunked streaming
- generate secure random passwords for file encryption
- self-host a private file encryption tool

## When to choose
- you need client-side file encryption with no server trust
- you want to encrypt large files efficiently in the browser
- you prefer modern algorithms like XChaCha20-Poly1305 and Argon2id
- you want a self-hostable, offline-capable encryption tool

## When to avoid
- you need command-line or scripted batch encryption
- you require full-disk or folder encryption
- you need integration into an existing application via an API

## Facets
- artifact type: application
- maturity: active
- function: cryptography, security, file-system
- domain: security, privacy, files, web-development
- platform: browser, self-hosted, cross-platform
- tags: file-encryption, client-side-encryption, xchacha20-poly1305, libsodium, argon2id, password-based-encryption, serverless, no-upload, web-server

## Member repositories
- sh-dv/hat.sh (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:34.919247+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:40:41.102603+00:00, confidence not recorded.
  - readme: https://github.com/sh-dv/hat.sh (fetched 2026-08-28T04:06:34.919247+00:00, sha 5193b13d6268)
- Data as of 2026-08-30T08:39:29.467469+00:00.
