Crate kg_passgen

Crate kg_passgen 

Source

Modulesยง

config
Configuration module for the password generator application. Defines the Config struct and related enums for hash algorithms and generator types. Also includes default configurations for KGPG and SGP. When using the GeneratorType::KGPG, it adds an extra security layer by making sure that it includes symbols in the generated passwords.
generator
The generator module contains the core logic for generating passwords based on user input and configuration settings. It includes functions for hashing, applying generator-specific transformations, validating passwords, and generating the final password.
url_helper
Extracts the host from a given URL, with an option to strip subdomains. If an invalid URL is provided, it returns the original string.