PRCYCoin  2.0.0.7rc1
P2P Digital Currency
matching.hpp
Go to the documentation of this file.
1 #ifndef __ZXCVBN__MATCHING_HPP
2 #define __ZXCVBN__MATCHING_HPP
3 
4 #include <zxcvbn/common.hpp>
7 
8 #include <string>
9 #include <vector>
10 
11 namespace zxcvbn {
12 
13 extern const std::vector<std::pair<std::string, std::vector<std::string>>> L33T_TABLE;
14 extern const std::vector<std::pair<RegexTag, std::regex>> REGEXEN;
15 
16 std::vector<Match> dictionary_match(const std::string & password,
17  const RankedDicts & ranked_dictionaries);
18 
19 std::vector<Match> reverse_dictionary_match(const std::string & password,
20  const RankedDicts & ranked_dictionaries);
21 
22 std::unordered_map<std::string, std::vector<std::string>> relevant_l33t_subtable(const std::string & password, const std::vector<std::pair<std::string, std::vector<std::string>>> & table);
23 
24 std::vector<std::unordered_map<std::string, std::string>> enumerate_l33t_subs(const std::unordered_map<std::string, std::vector<std::string>> & table);
25 
26 std::vector<Match> l33t_match(const std::string & password,
27  const RankedDicts & ranked_dictionaries,
28  const std::vector<std::pair<std::string, std::vector<std::string>>> & l33t_table);
29 
30 std::vector<Match> spatial_match(const std::string & password,
31  const Graphs & graphs);
32 
33 std::vector<Match> repeat_match(const std::string & password);
34 
35 std::vector<Match> sequence_match(const std::string & password);
36 
37 std::vector<Match> regex_match(const std::string & password,
38  const std::vector<std::pair<RegexTag, std::regex>> & regex);
39 
40 std::vector<Match> date_match(const std::string & password);
41 
42 std::vector<Match> omnimatch(const std::string & password,
43  const std::vector<std::string> & ordered_list = {});
44 
45 }
46 
47 #endif
zxcvbn::repeat_match
std::vector< Match > repeat_match(const std::string &password)
Definition: matching.cpp:443
zxcvbn::reverse_dictionary_match
std::vector< Match > reverse_dictionary_match(const std::string &password, const RankedDicts &ranked_dictionaries)
Definition: matching.cpp:175
zxcvbn::regex_match
std::vector< Match > regex_match(const std::string &password, const std::vector< std::pair< RegexTag, std::regex >> &regexen)
Definition: matching.cpp:603
common.hpp
zxcvbn::RankedDicts
std::unordered_map< DictionaryTag, const RankedDict & > RankedDicts
Definition: frequency_lists.hpp:30
zxcvbn
Definition: _frequency_lists.cpp:7
zxcvbn::enumerate_l33t_subs
std::vector< std::unordered_map< std::string, std::string > > enumerate_l33t_subs(const std::unordered_map< std::string, std::vector< std::string >> &table)
Definition: matching.cpp:221
zxcvbn::omnimatch
std::vector< Match > omnimatch(const std::string &password, const std::vector< std::string > &ordered_list)
Definition: matching.cpp:109
zxcvbn::l33t_match
std::vector< Match > l33t_match(const std::string &password, const RankedDicts &ranked_dictionaries, const std::vector< std::pair< std::string, std::vector< std::string >>> &l33t_table)
Definition: matching.cpp:280
zxcvbn::spatial_match
std::vector< Match > spatial_match(const std::string &password, const Graphs &graphs)
Definition: matching.cpp:337
zxcvbn::Graphs
std::unordered_map< GraphTag, Graph > Graphs
Definition: adjacency_graphs.hpp:39
zxcvbn::L33T_TABLE
const std::vector< std::pair< std::string, std::vector< std::string > > > L33T_TABLE
Definition: matching.hpp:13
zxcvbn::sequence_match
std::vector< Match > sequence_match(const std::string &password)
Definition: matching.cpp:512
zxcvbn::date_match
std::vector< Match > date_match(const std::string &password)
Definition: matching.cpp:648
zxcvbn::relevant_l33t_subtable
std::unordered_map< std::string, std::vector< std::string > > relevant_l33t_subtable(const std::string &password, const std::vector< std::pair< std::string, std::vector< std::string >>> &table)
Definition: matching.cpp:201
zxcvbn::dictionary_match
std::vector< Match > dictionary_match(const std::string &password, const RankedDicts &ranked_dictionaries)
Definition: matching.cpp:143
zxcvbn::graphs
const Graphs & graphs()
Definition: adjacency_graphs.cpp:270
frequency_lists.hpp
adjacency_graphs.hpp
zxcvbn::REGEXEN
const std::vector< std::pair< RegexTag, std::regex > > REGEXEN
Definition: matching.hpp:14