Files
Vetting/tools/gen-admin-password/main.go
T
josh 9bb4b09a04
CI / Lint + build + test (push) Has been cancelled
Initial commit: full Phases 1-6 implementation
Post-repair hardware validation pipeline for Proxmox cluster hosts.
Go orchestrator + in-image agent + mkosi live image + bundled dnsmasq
PXE + SQLite + HTMX/SSE UI + notify registry + janitor + full docs.
2026-04-17 21:32:10 -04:00

22 lines
313 B
Go

package main
import (
"fmt"
"os"
"vetting/internal/auth"
)
func main() {
if len(os.Args) != 2 {
fmt.Fprintln(os.Stderr, "usage: gen-admin-password <plaintext>")
os.Exit(2)
}
hash, err := auth.BcryptHash(os.Args[1])
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
fmt.Println(hash)
}