From ddae28d1a975c3ba97dd2269d021510d57f4d918 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Thu, 14 Mar 2024 11:26:32 +0100 Subject: [PATCH] Correct version references in README and apg.go The version number in several instances in the README file and apg.go has been modified from v2.0.0 to v1.0.0. This more accurately reflects the version where the changes were implemented and ensures consistency across all documentation. --- README.md | 8 ++++---- apg.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 642fb68..b385556 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ $ sudo cp apg /usr/local/bin/apg ``` ## Programmatic interface -Since v2.0.0 the CLI and the main package functionality have been separated from each other, which makes +Since v1.0.0 the CLI and the main package functionality have been separated from each other, which makes it easier to use the `apg-go` package in other Go code as well. This way you can make of the password generation in your own code without having to rely on the actual apg-go binary. @@ -204,7 +204,7 @@ running: $ ./apg-go -n 1 -C -m 32 -x 32 5lc&HBvx=!EUY*;'/t&>B|~sudhtyDBu ``` -Alternatively, since v2.0.0 apg-go has the new `-f` flag, which allows to request a fixed length +Alternatively, since v1.0.0 apg-go has the new `-f` flag, which allows to request a fixed length password. Instead of using `-m` and `-x` you can just use `-f 32` to get a 32 character long password: ```shell $ ./apg -n 1 -C -f 32 @@ -253,7 +253,7 @@ pEnbocydrageT*En (pEn-bo-cy-dra-geT-ASTERISK-En) ``` ### Coinflip mode -Sometimes you just want to quickly perform a simple, but random coinflip. Since v2.0.0 apg-go has a +Sometimes you just want to quickly perform a simple, but random coinflip. Since v1.0.0 apg-go has a coinflip mode, which will return either "Heads" or "Tails". To use coinflip mode, use the `-a 2` argument: ```shell $ ./apg -n 10 -a 2 @@ -272,7 +272,7 @@ Heads ### Minimum required characters Even though in apg-go you can select what kind of characters are used for the password generation, it is not guaranteed, that if you request a password with a numeric value, that the generated password will -actually have a numeric value. Since v2.0.0 apg-go has a new set of arguments, that let's you define +actually have a numeric value. Since v1.0.0 apg-go has a new set of arguments, that let's you define a minimum amount of characters of a specific character class to be included in the generated password. This can be requested with the `-mL`, `-mN`, `-mS` and `-mU` arguments. Each stands for the corresponding character class. If one of the arguments is give, apg-go will generate passwords until the requested amount diff --git a/apg.go b/apg.go index 1436e0f..1e2baee 100644 --- a/apg.go +++ b/apg.go @@ -5,7 +5,7 @@ package apg // VERSION represents the version string -const VERSION = "2.0.0" +const VERSION = "1.0.0" // Generator is the password generator type of the APG package type Generator struct {