
Building a Deterministic Password CLI in Go with Argon2id
Most password generators focus on randomness. GitHub repo: VincentCapek/argon2-password-cli This project takes a different route: it derives the same password every time from a master password and a label such as github , gmail , or bank . That makes it a great little Go project for learning a few useful concepts at once: building a CLI with flag structuring a small Go codebase using Argon2id understanding deterministic derivation versus random generation shaping output with validation and character groups The idea Instead of generating a brand-new password on every run, the CLI derives a reproducible one from two inputs: a master password a label So this: go run . -master = "MyUltraSecret" -label = "github" -length = 20 Will always return the same password as long as the inputs and options stay the same. Change the label to gmail , and the output changes too. That gives you a simple mental model: same master + same label = same password same master + different label = different passwo
Continue reading on Dev.to
Opens in a new tab



