Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 438 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 438 Bytes

passgo

A human password generator package written in Go. It is based on Pradeep Kishore Gowda's nicepass.py.

Usage

package main

import (
	"fmt"
	"github.com/prinsmike/passgo"
)

func main() {

	c := []byte("bcdfghjklmnpqrstvwxyz")
	v := []byte("aeiou")
	n := []byte("0123456789")
	s := []byte("!@$#%&*-_.")
	gen := passgo.NewGenerator(c, v, n, s, true, 8)
	pass, _ := gen.NewPassword(10, 2, 1)
	fmt.Println(pass)
}