2023-04-18 11:49:44 +02:00
|
|
|
package apg
|
|
|
|
|
2023-08-04 16:02:58 +02:00
|
|
|
// VERSION represents the version string
|
|
|
|
const VERSION = "2.0.0"
|
|
|
|
|
2023-04-18 11:49:44 +02:00
|
|
|
// Generator is the password generator type of the APG package
|
|
|
|
type Generator struct {
|
|
|
|
// charRange is the range of character used for the
|
|
|
|
charRange string
|
2023-08-04 16:02:58 +02:00
|
|
|
// config is a pointer to the apg config instance
|
|
|
|
config *Config
|
2023-04-18 11:49:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// New returns a new password Generator type
|
2023-08-04 16:02:58 +02:00
|
|
|
func New(c *Config) *Generator {
|
|
|
|
return &Generator{
|
|
|
|
config: c,
|
|
|
|
}
|
2023-04-18 11:49:44 +02:00
|
|
|
}
|