pw

minimal password generator

MIT License

Stars
24

Bot releases are visible (Hide)

pw - v0.4.0 Latest Release

Published by github-actions[bot] almost 2 years ago

Changelog

  • 714084b build(deps): bump actions/checkout from 2 to 3
  • eade3ec build(deps): bump actions/setup-go from 2 to 3
  • 336f42c fix: distribution thanks to @riadafridishibly
pw - v0.3.6

Published by github-actions[bot] about 2 years ago

go install github.com/iwpnd/pw/cmd/pw@latest
 pw create --help
NAME:
   pw create - create a new password

USAGE:
   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)
pw - v0.3.5

Published by github-actions[bot] about 2 years ago

Changelog

  • 8f10419 ci: drop goreleaser before hooks
pw - v0.3.1

Published by github-actions[bot] about 2 years ago

Changelog

  • 9d4d037 ci: fix goreleaser binary name
pw - v0.3.0

Published by github-actions[bot] about 2 years ago

Changelog

  • 741f21b ci: fix goreleaser main path
  • 3d29d4b chore: move back cli
  • 89ddf21 ci: 👷 separate test and release
  • 4eb931a ci: 👷 add goreleaser
  • db05499 chore: 🔧 move cli
  • 225da88 feat: ✨ finalize cli
  • c805510 fix: 🐛 use crypto/rand instead
  • 6440bee Merge pull request #1 from iwpnd/dependabot/github_actions/golangci/golangci-lint-action-3.2.0
  • a0d0aa3 docs: update
  • 214efaa build(deps): bump golangci/golangci-lint-action from 2.5.2 to 3.2.0
pw - v0.2.0

Published by github-actions[bot] about 2 years ago

Changelog

  • 741f21b ci: fix goreleaser main path
  • 3d29d4b chore: move back cli
  • 89ddf21 ci: 👷 separate test and release
  • 4eb931a ci: 👷 add goreleaser
  • db05499 chore: 🔧 move cli
  • 225da88 feat: ✨ finalize cli
  • c805510 fix: 🐛 use crypto/rand instead
  • 6440bee Merge pull request #1 from iwpnd/dependabot/github_actions/golangci/golangci-lint-action-3.2.0
  • a0d0aa3 docs: update
  • 214efaa build(deps): bump golangci/golangci-lint-action from 2.5.2 to 3.2.0
pw -

Published by iwpnd about 2 years ago

pw

pw is a minimal password generator for me lazy fk

Installation

go get -u github.com/iwpnd/pw

Usage

package main

import (
  "fmt"

  "github.com/iwpnd/pw"
  )


func main() {
    // use all characters
    p := pw.NewPassword(50)
    fmt.Println("default password: ", p)

    cp := pw.NewPassword(
        50,
        // 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 pass that bubbled up in my timeline and I used as foundation to play with strings and go a little.

Maintainer

Benjamin Ramser - @iwpnd

Project Link: https://github.com/iwpnd/pw