Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigValidator ¶
type ConfigValidator interface {
// Validate validates the configuration
Validate(*types.Config) error
}
ConfigValidator defines the interface for configuration validation
type Cryptographic ¶
type Cryptographic interface {
// Hash generates a hash for the given password
Hash(password string) (string, error)
// HashWithSalt generates a hash for the given password with the specified salt
HashWithSalt(password, salt string) (string, error)
// Verify checks if the given hashed password matches the plaintext password
Verify(hashed, password string) error
}
Cryptographic defines the interface for cryptographic operations
Click to show internal directories.
Click to hide internal directories.