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.
This commit is contained in:
Winni Neessen 2024-03-14 11:26:32 +01:00
parent 3847ab0735
commit ddae28d1a9
Signed by: wneessen
GPG key ID: 385AC9889632126E
2 changed files with 5 additions and 5 deletions

View file

@ -121,7 +121,7 @@ $ sudo cp apg /usr/local/bin/apg
``` ```
## Programmatic interface ## 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 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. 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 $ ./apg-go -n 1 -C -m 32 -x 32
5lc&HBvx=!EUY*;'/t&>B|~sudhtyDBu 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: password. Instead of using `-m` and `-x` you can just use `-f 32` to get a 32 character long password:
```shell ```shell
$ ./apg -n 1 -C -f 32 $ ./apg -n 1 -C -f 32
@ -253,7 +253,7 @@ pEnbocydrageT*En (pEn-bo-cy-dra-geT-ASTERISK-En)
``` ```
### Coinflip mode ### 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: coinflip mode, which will return either "Heads" or "Tails". To use coinflip mode, use the `-a 2` argument:
```shell ```shell
$ ./apg -n 10 -a 2 $ ./apg -n 10 -a 2
@ -272,7 +272,7 @@ Heads
### Minimum required characters ### Minimum required characters
Even though in apg-go you can select what kind of characters are used for the password generation, it is 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 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. 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 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 character class. If one of the arguments is give, apg-go will generate passwords until the requested amount

2
apg.go
View file

@ -5,7 +5,7 @@
package apg package apg
// VERSION represents the version string // 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 // Generator is the password generator type of the APG package
type Generator struct { type Generator struct {