Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateLength ¶
Types ¶
type ArgonConfig ¶
конфиг Argon2
type PasswordGenerator ¶
type PasswordGenerator struct {
// contains filtered or unexported fields
}
func NewPasswordGenerator ¶
func NewPasswordGenerator(length int) *PasswordGenerator
func NewPasswordGeneratorWithConfig ¶
func NewPasswordGeneratorWithConfig(length int, argonConfig ArgonConfig) *PasswordGenerator
NewPasswordGeneratorWithConfig создаёт генератор с пользовательской конфигурацией Argon2
func (*PasswordGenerator) GeneratePassword ¶
func (pg *PasswordGenerator) GeneratePassword(masterPassword *security.SecureString, serviceName, username string, messages *i18n.Messages) (*security.SecureString, error)
Click to show internal directories.
Click to hide internal directories.