# google/fscrypt

Go tool for managing Linux filesystem encryption

Repository: https://github.com/google/fscrypt
Canonical: https://ross.abutalabs.com/products/fscrypt
Language: Go
License: Apache-2.0
License Family: permissive
Topics: cryptography, filesystem, filesystem-encryption, ext4-filesystem, argon2, golang, pam-module
Last push: 2026-08-22T19:08:16+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 67, longevity 100
- inputs: {"age_days": 3339, "days_push": 11, "days_rel": 11, "gap_med": 277.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1028, forks 110 (observed 2026-08-28T04:03:17.509466+00:00)

## What it is
fscrypt is a Go command-line tool for managing Linux native filesystem encryption (fscrypt API) on filesystems like ext4 and f2fs. It handles metadata, key generation and wrapping, PAM integration, and provides a uniform interface for creating, locking, and unlocking encrypted directories.

## Use cases
- encrypt directories on ext4 or f2fs with Linux native filesystem encryption
- unlock encrypted directories automatically at login via PAM
- manage encryption keys and protectors for fscrypt
- set up per-directory encryption on a Linux system
- lock and unlock encrypted folders from the command line

## When to choose
- you want per-directory encryption using the kernel's native fscrypt API rather than full-disk encryption
- you need automatic unlocking of encrypted directories tied to your login passphrase
- you want a high-level, maintained tool instead of the low-level fscryptctl

## When to avoid
- your filesystem does not support the Linux native fscrypt API (e.g., you need something other than ext4/f2fs)
- you need full-disk or block-device encryption such as LUKS/dm-crypt
- you need cross-platform encryption like eCryptfs or gocryptfs

## Facets
- artifact type: cli-tool
- maturity: active
- function: cryptography, file-system, security, cli
- domain: security, privacy, operating-systems, files
- platform: cli, go
- tags: filesystem-encryption, ext4, f2fs, pam, argon2, disk-encryption, linux

## Member repositories
- google/fscrypt (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:17.509466+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-30T07:07:45.903888+00:00, confidence not recorded.
  - readme: https://github.com/google/fscrypt (fetched 2026-08-28T04:03:17.509466+00:00, sha d7f0fa6544d9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
