@dork7/filehasher
v1.0.1
Published
Password-protected file encryption (AES-256-GCM) with CLI
Readme
@dork7/filehasher
Password-protected file encryption (AES-256-GCM) with a CLI and library API. For one-way file fingerprints (e.g. SHA-256), use the hash command.
Install
npm install @dork7/filehasherCLI
npx filehasher encrypt -i plain.txt -o secret.fhc
npx filehasher decrypt -i secret.fhc -o plain.txtOmit -p / --password for a masked prompt (encrypt asks for confirmation). Passwords are not saved to disk.
.env helpers (same directory as the working directory):
npx filehasher env lock # .env → .env.fhc (alias: env hash)
npx filehasher env unlock # .env.fhc → .env (alias: env dehash)One-way digest (not encryption):
npx filehasher hash ./file.txtLibrary
import { encrypt, decrypt, hashBuffer } from "@dork7/filehasher";Requirements
Node.js 18+.
Repository
Source lives in the filehasher monorepo under packages/filehasher.
