Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iwpnd/pw
minimal password generator
https://github.com/iwpnd/pw
cli-app golang password-generator
Last synced: 3 months ago
JSON representation
minimal password generator
- Host: GitHub
- URL: https://github.com/iwpnd/pw
- Owner: iwpnd
- License: mit
- Created: 2022-08-15T19:12:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-15T07:17:53.000Z (5 months ago)
- Last Synced: 2024-10-07T06:05:39.244Z (3 months ago)
- Topics: cli-app, golang, password-generator
- Language: Go
- Homepage:
- Size: 32.2 KB
- Stars: 24
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# pw
pw is a minimal password generator for me lazy fk
## Installation
### cli```
go install github.com/iwpnd/pw/cmd/pw@latest
``````bash
➜ pw create --help
NAME:
pw create - create a new passwordUSAGE:
pw create [command options] [arguments...]OPTIONS:
--length value, -l value length of password (default: 50)
--no-lower, --nl password contains NO lowercase characters (default: false)
--no-numbers, --nn password contains NO number characters (default: false)
--no-special, --ns password contains NO special characters (default: false)
--no-upper, --nu password contains NO uppercase characters (default: false)
```### package
```
go get -u github.com/iwpnd/pw
```## Usage
```go
package mainimport (
"fmt""github.com/iwpnd/pw"
)func main() {
// use all characters
p := pw.NewPassword(50)
fmt.Println("default password: ", p)cp := pw.NewPassword(
50,// optional
// use numbers in password
WithNumbers(),
// use uppercase characters in password
WithUpperCase(),
// use lowercase characters in password
WithLowerCase(),
// use special characters in password
WithSpecial(),
)
fmt.Println("custom password: ", p)
}
```## License
MIT
## Acknowledgement
inspired by [@briandowns](https://github.com/briandowns) pass that bubbled up in my timeline and I used as foundation to play with strings and go a little.
## Maintainer
Benjamin Ramser - [@iwpnd](https://github.com/iwpnd)
Project Link: [https://github.com/iwpnd/pw](https://github.com/iwpnd/pw)