Skip to content

bhushan-mdn/enigma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

enigma

A simple cli password generator. Inspired from Bitwarden's Free Password Generator. Not suitable for production. More of a thought experiment. Entirely non-vibe-coded.

image

Usage

Build:

go build -o enigma

Command-line usage:

$ ./enigma -h
Usage of ./enigma:
  -N	include number in passphrase?
  -c	capitalize passphrase?
  -n int
    	number of characters (password) / words (passphrase) (default 14)
  -s string
    	comma-separated set of characters to pick from. values: a,A,0,! (default "a,A,0")
  -t string
    	type of secret. values: password, passphrase (default "password")
  -w string
    	word separator for passphrase (default " ")

To generate a password with 14 characters with a-z, A-Z, 0-9, and special characters,

$ ./enigma -n 14 -t password -s 'a,A,0,!'
4Yhyuy$4$UtsVQ

To generate a passphrase with 5 words,

$ ./enigma -n 5 -t passphrase -w "-" -c -N
Clinic-Carefully-Trimming-Dislodge-Surplus2

Future Plans

  • Add a quiet mode switch for piping into system clipboard using xclip -selection clipboard or pbcopy
  • Write a Makefile
  • Improve error handling
  • Clean up names
  • Use those fancy cli libraries like urfave/cli or spf13/cobra

About

simple cli password generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages