mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 19:48:11 +00:00
Removed unused function util::password_matches_hash.
This commit is contained in:
parent
293f680af1
commit
d2372aee8a
@ -83,9 +83,4 @@ std::string create_hash(const std::string& password, const std::string& salt, in
|
||||
return encode_hash(output);
|
||||
}
|
||||
|
||||
bool password_matches_hash(const std::string& password, const std::string& hash) {
|
||||
return hash.substr(12,34) == create_hash(password, get_salt(hash), get_iteration_count(hash));
|
||||
}
|
||||
|
||||
} // namespace util
|
||||
|
||||
|
@ -26,7 +26,6 @@ std::string get_salt(const std::string& hash);
|
||||
bool is_valid_hash(const std::string& hash);
|
||||
std::string encode_hash(unsigned char* input);
|
||||
std::string create_hash(const std::string& password, const std::string& salt, int iteration_count =10);
|
||||
bool password_matches_hash(const std::string& password, const std::string& hash);
|
||||
|
||||
} // namespace util
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user