diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 982524b..e6d7338 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,9 +5,9 @@ - - + + - + @@ -238,8 +238,8 @@ true - + \ No newline at end of file diff --git a/README.md b/README.md index cfc072e..0195a40 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/apg.go b/apg.go index 354cb71..b11a5db 100644 --- a/apg.go +++ b/apg.go @@ -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 @@ -30,9 +30,11 @@ type Config struct { } // Help text -const usage = `Usage: - apg [-m ] [-x ] -L -U -N -S -H - apg [-m ] [-x ] -M LUNsh -E +const usage = `apg-go // A "Automated Password Generator"-clone +Copyright (c) 2021 Winni Neessen + +apg [-m ] [-x ] [-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) @@ -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) } diff --git a/buildfiles/arch-linux/PKGBUILD b/buildfiles/arch-linux/PKGBUILD index 8db7606..cac62af 100644 --- a/buildfiles/arch-linux/PKGBUILD +++ b/buildfiles/arch-linux/PKGBUILD @@ -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')