Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DCC2Hash ¶
DCC2Hash generates a DCC2 hash from the given username and password.
Parameters: - username: The username associated with the password. - password: The password to be hashed. - rounds: The number of PBKDF2 rounds to apply.
Returns: - A string in the format "$DCC2$<rounds>#<username>#<hash>" representing the DCC2 hash.
Example: DCC2Hash("user", "password", 10240) returns the DCC2 hash of the password in the specified format.
func DCC2HashWithNTHash ¶
DCC2Hash generates a DCC2 hash from the given username and password.
Parameters: - username: The username associated with the password. - password: The password to be hashed. - rounds: The number of PBKDF2 rounds to apply.
Returns: - A string in the format "$DCC2$<rounds>#<username>#<hash>" representing the DCC2 hash.
Example: DCC2Hash("user", "password", 10240) returns the DCC2 hash of the password in the specified format.
func DCC2HashWithPassword ¶
DCC2HashWithPassword generates a DCC2 hash from the given username and password.
Parameters: - username: The username associated with the password. - password: The password to be hashed. - rounds: The number of PBKDF2 rounds to apply.
Returns: - A string in the format "$DCC2$<rounds>#<username>#<hash>" representing the DCC2 hash.
Example: DCC2Hash("user", "password", 10240) returns the DCC2 hash of the password in the specified format.
Types ¶
This section is empty.