mirror of
https://github.com/wneessen/apg-go.git
synced 2024-11-22 05:40:51 +01:00
Winni Neessen
fefb2557fc
The spelling of "Pronounceable" has been adjusted throughout the code. Moreover, a new functionality for producing pronounceable passwords spelled as correlating syllables has been integrated. This includes relevant changes to password character sets used for pronounceable passwords and enhancements to test this new feature.
20 lines
473 B
Go
20 lines
473 B
Go
package apg
|
|
|
|
// VERSION represents the version string
|
|
const VERSION = "2.0.0"
|
|
|
|
// Generator is the password generator type of the APG package
|
|
type Generator struct {
|
|
// config is a pointer to the apg config instance
|
|
config *Config
|
|
// syllables holds the single syllables of the lasst generated
|
|
// pronounceable password
|
|
syllables []string
|
|
}
|
|
|
|
// New returns a new password Generator type
|
|
func New(config *Config) *Generator {
|
|
return &Generator{
|
|
config: config,
|
|
}
|
|
}
|