generator

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateLength

func ValidateLength(length int) error

Types

type ArgonConfig

type ArgonConfig struct {
	Time    uint32
	Memory  uint32
	Threads uint8
	KeyLen  uint32
}

конфиг 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL