# @hugo-fixit/encrypt Post-build AES-256-GCM encryption tool for the [FixIt](https://github.com/hugo-fixit/FixIt) Hugo theme. It is designed for HTML generated by FixIt content encryption templates and should be run after your site has already been built. ## Usage > After building your Hugo site, run the encryption tool from your site root. Recommended: install as a dev dependency and configure scripts: ```bash npm install -D @hugo-fixit/encrypt ``` Then in your `package.json`: ```json { "scripts": { "build": "hugo --gc --minify --logLevel info", "postbuild": "fixit-encrypt" } } ``` You can also run it directly via npx: ```bash npx @hugo-fixit/encrypt ``` Or install globally and run the CLI directly: ```bash npm install -g @hugo-fixit/encrypt fixit-encrypt ``` ### Options | Option | Description | Default | | --------------- | -------------------------------------------------- | -------- | | `--input ` | Input directory containing HTML files | `public` | | `--dry-run` | Show which files would be modified without writing | `false` | | `--verify` | Verify all encryption templates are encrypted | `false` | | `-h, --help` | Show CLI usage help | | ### Examples ```bash # Show CLI help npx @hugo-fixit/encrypt --help # Encrypt content in the default public/ directory npx @hugo-fixit/encrypt # Encrypt content in a custom directory npx @hugo-fixit/encrypt --input dist # Verify encryption without modifying files npx @hugo-fixit/encrypt --verify # Dry run to see which files would be changed npx @hugo-fixit/encrypt --dry-run ``` ## How It Works 1. Scans all `.html` files in the input directory 2. Finds `