This is both a CLI tool and a go (golang) library for generating secure passwords based on EFF diceware algorithm.
package main
import (
"github.com/twistedhardware/mkpass"
"fmt"
)
func main() {
fmt.Println(mkpass.GenerateDicewarePassword(5))
}
To use this as a CLI tool, first, you need to install it:
go install github.com/twistedhardware/mkpass/cmd/[email protected]
Then you can generate a password:
makepass