https://github.com/zokis/gopassgen
a simple application to generate passwords written in go / golang
https://github.com/zokis/gopassgen
Last synced: about 1 year ago
JSON representation
a simple application to generate passwords written in go / golang
- Host: GitHub
- URL: https://github.com/zokis/gopassgen
- Owner: zokis
- Created: 2015-04-17T21:05:05.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-23T01:31:31.000Z (about 11 years ago)
- Last Synced: 2025-02-16T11:27:44.470Z (over 1 year ago)
- Language: Go
- Homepage: https://godoc.org/github.com/zokis/gopassgen
- Size: 172 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Password Generator
[](https://godoc.org/github.com/zokis/gopassgen)
a simple application to generate passwords
```go
package main
import f "fmt"
import gpg "github.com/zokis/gopassgen"
func main() {
np1 := gpg.NewPassword()
np2 := gpg.NewPassword(gpg.OptionChars([]rune("ABCDEF.")))
np3 := gpg.NewPassword(gpg.OptionLength(15))
np4 := gpg.NewPassword(gpg.OptionChars([]rune("abcdef.")), gpg.OptionLength(15))
np5 := gpg.NewPassword(gpg.OptionLength(15), gpg.OptionChars([]rune("012345.")))
f.Println(np1)
f.Println(np2)
f.Println(np3)
f.Println(np4)
f.Println(np5)
}
```