Skip to content

Commit

Permalink
Merge pull request #10 from wneessen/dev
Browse files Browse the repository at this point in the history
v0.3.0: Unified the naming convention
  • Loading branch information
wneessen authored Apr 1, 2021
2 parents b3ac855 + 8a7c00a commit b3b3d28
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Advanced Password Generator (APG) Clone
_apg-go_ is a simple APG-like password generator script written in Go. It tries to replicate the
# A "Automated Password Generator"-Clone
![Go workflow](https://github.com/wneessen/apg-go/actions/workflows/go.yml/badge.svg)
![CodeQL workflow](https://github.com/wneessen/apg-go/actions/workflows/codeql-analysis.yml/badge.svg)

_apg-go_ is a simple APG-like password generator written in Go. It tries to replicate the
functionality of the
"[Automated Password Generator](https://web.archive.org/web/20130313042424/http://www.adel.nursat.kz:80/apg)",
which hasn't been maintained since 2003. Since more and more Unix distributions are abondoning the tool, I was
Expand Down
12 changes: 7 additions & 5 deletions apg.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

// Constants
const DefaultPwLenght int = 20
const VersionString string = "0.2.9"
const VersionString string = "0.3.0"

type Config struct {
minPassLen int
Expand All @@ -30,9 +30,11 @@ type Config struct {
}

// Help text
const usage = `Usage:
apg [-m <length>] [-x <length>] -L -U -N -S -H
apg [-m <length>] [-x <length>] -M LUNsh -E <list of chars>
const usage = `apg-go // A "Automated Password Generator"-clone
Copyright (c) 2021 Winni Neessen
apg [-m <length>] [-x <length>] [-L] [-U] [-N] [-S] [-H] [-C]
[-l] [-M mode] [-E char_string] [-n num_of_pass] [-v] [-h]
Options:
-m LENGTH Minimum length of the password to be generated (Default: 20)
Expand Down Expand Up @@ -61,7 +63,7 @@ func main() {

// Show version and exit
if config.showVersion {
_, _ = os.Stderr.WriteString("Advanced Password Generator Clone (apg.go) v" + VersionString + "\n")
_, _ = os.Stderr.WriteString(`apg-go // A "Automated Password Generator"-clone v` + VersionString + "\n")
_, _ = os.Stderr.WriteString("(C) 2021 by Winni Neessen\n")
os.Exit(0)
}
Expand Down
2 changes: 1 addition & 1 deletion buildfiles/arch-linux/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pkgname=apg-go
pkgver=0.2.9
pkgrel=1
pkgdesc='Advanced Password Generator Clone'
pkgdesc='A "Automated Password Generator"-clone'
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url='https://github.com/wneessen/apg-go'
license=('MIT')
Expand Down

0 comments on commit b3b3d28

Please sign in to comment.