Skip to content

Commit b3b3d28

Browse files
author
Winni Neessen
authored
Merge pull request #10 from wneessen/dev
v0.3.0: Unified the naming convention
2 parents b3ac855 + 8a7c00a commit b3b3d28

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

.idea/workspace.xml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
# Advanced Password Generator (APG) Clone
2-
_apg-go_ is a simple APG-like password generator script written in Go. It tries to replicate the
1+
# A "Automated Password Generator"-Clone
2+
![Go workflow](https://github.com/wneessen/apg-go/actions/workflows/go.yml/badge.svg)
3+
![CodeQL workflow](https://github.com/wneessen/apg-go/actions/workflows/codeql-analysis.yml/badge.svg)
4+
5+
_apg-go_ is a simple APG-like password generator written in Go. It tries to replicate the
36
functionality of the
47
"[Automated Password Generator](https://web.archive.org/web/20130313042424/http://www.adel.nursat.kz:80/apg)",
58
which hasn't been maintained since 2003. Since more and more Unix distributions are abondoning the tool, I was

apg.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
// Constants
1111
const DefaultPwLenght int = 20
12-
const VersionString string = "0.2.9"
12+
const VersionString string = "0.3.0"
1313

1414
type Config struct {
1515
minPassLen int
@@ -30,9 +30,11 @@ type Config struct {
3030
}
3131

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

6264
// Show version and exit
6365
if config.showVersion {
64-
_, _ = os.Stderr.WriteString("Advanced Password Generator Clone (apg.go) v" + VersionString + "\n")
66+
_, _ = os.Stderr.WriteString(`apg-go // A "Automated Password Generator"-clone v` + VersionString + "\n")
6567
_, _ = os.Stderr.WriteString("(C) 2021 by Winni Neessen\n")
6668
os.Exit(0)
6769
}

buildfiles/arch-linux/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
pkgname=apg-go
44
pkgver=0.2.9
55
pkgrel=1
6-
pkgdesc='Advanced Password Generator Clone'
6+
pkgdesc='A "Automated Password Generator"-clone'
77
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
88
url='https://github.com/wneessen/apg-go'
99
license=('MIT')

0 commit comments

Comments
 (0)