![]() |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Namespaces | |
| _frequency_lists | |
| optional | |
| util | |
Classes | |
| struct | AttackTimes |
| struct | BruteforceMatch |
| struct | DateMatch |
| struct | DictionaryMatch |
| struct | DMY |
| struct | Feedback |
| class | Match |
| struct | pattern_type_to_pmc |
| struct | PortableRegexMatch |
| struct | RegexMatch |
| struct | RepeatMatch |
| struct | ScoringResult |
| struct | SequenceMatch |
| struct | SpatialMatch |
| struct | UnknownMatch |
| struct | ZxcvbnResult |
Typedefs | |
| using | Graph = std::unordered_map< std::string, std::vector< optional::optional< std::string > >> |
| using | Graphs = std::unordered_map< GraphTag, Graph > |
| using | degree_t = double |
| using | guesses_t = zxcvbn_guesses_t |
| using | guesses_log10_t = int |
| using | score_t = unsigned |
| using | idx_t = std::string::size_type |
| using | DictionaryTag = _frequency_lists::DictionaryTag |
| using | RankedDicts = std::unordered_map< DictionaryTag, const RankedDict & > |
| using | rank_t = std::size_t |
| using | RankedDict = std::unordered_map< std::string, rank_t > |
| using | date_t = unsigned |
| using | time_t = double |
Enumerations | |
| enum | GraphTag { GraphTag::QWERTY, GraphTag::DVORAK, GraphTag::KEYPAD, GraphTag::MAC_KEYPAD } |
| enum | RegexTag { RegexTag::RECENT_YEAR, RegexTag::ALPHA_LOWER, RegexTag::ALPHANUMERIC } |
| enum | SequenceTag { SequenceTag::UPPER, SequenceTag::LOWER, SequenceTag::DIGITS, SequenceTag::UNICODE } |
| enum | MatchPattern |
Functions | |
| const Graphs & | graphs () |
| Feedback | get_feedback (score_t score, const std::vector< Match > &sequence) |
| RankedDicts | convert_to_ranked_dicts (std::unordered_map< DictionaryTag, RankedDict > &ranked_dicts) |
| RankedDicts | default_ranked_dicts () |
| template<class T > | |
| RankedDict | build_ranked_dict (const T &ordered_list) |
| std::vector< Match > | omnimatch (const std::string &password, const std::vector< std::string > &ordered_list) |
| std::vector< Match > | dictionary_match (const std::string &password, const RankedDicts &ranked_dictionaries) |
| std::vector< Match > | reverse_dictionary_match (const std::string &password, const RankedDicts &ranked_dictionaries) |
| 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) |
| std::vector< std::unordered_map< std::string, std::string > > | enumerate_l33t_subs (const std::unordered_map< std::string, std::vector< std::string >> &table) |
| 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) |
| std::vector< Match > | spatial_match (const std::string &password, const Graphs &graphs) |
| std::vector< Match > | repeat_match (const std::string &password) |
| std::vector< Match > | sequence_match (const std::string &password) |
| std::vector< Match > | regex_match (const std::string &password, const std::vector< std::pair< RegexTag, std::regex >> ®exen) |
| std::vector< Match > | date_match (const std::string &password) |
| template<class Tret , class Tin > | |
| Tret | factorial (Tin n) |
| ScoringResult | most_guessable_match_sequence (const std::string &password, std::vector< Match > &matches, bool exclude_additive) |
| guesses_t | estimate_guesses (Match &match, const std::string &password) |
| guesses_t | unknown_guesses (const Match &match) |
| guesses_t | bruteforce_guesses (const Match &match) |
| guesses_t | repeat_guesses (const Match &match) |
| guesses_t | sequence_guesses (const Match &match) |
| guesses_t | regex_guesses (const Match &match) |
| guesses_t | date_guesses (const Match &match) |
| guesses_t | spatial_guesses (const Match &match) |
| guesses_t | dictionary_guesses (const Match &match) |
| guesses_t | uppercase_variations (const Match &match) |
| guesses_t | l33t_variations (const Match &match) |
| template<class T > | |
| T | nCk (T n, T k) |
| MATCH_RUN () | |
| AttackTimes | estimate_attack_times (guesses_t guesses) |
| ZxcvbnResult | zxcvbn (const std::string &password, const std::vector< std::string > &user_inputs) |
Variables | |
| const auto | no = optional::nullopt |
| const Graphs | _graphs |
| const degree_t | KEYBOARD_AVERAGE_DEGREE = calc_average_degree(_graphs.at(GraphTag::QWERTY)) |
| const degree_t | KEYPAD_AVERAGE_DEGREE = calc_average_degree(_graphs.at(GraphTag::KEYPAD)) |
| const std::size_t | KEYBOARD_STARTING_POSITIONS = _graphs.at(GraphTag::QWERTY).size() |
| const std::size_t | KEYPAD_STARTING_POSITIONS = _graphs.at(GraphTag::KEYPAD).size() |
| const Feedback | DEFAULT_FEEDBACK |
| const std::vector< std::pair< std::string, std::vector< std::string > > > | L33T_TABLE |
| const std::vector< std::pair< RegexTag, std::regex > > | REGEXEN |
| const auto | DATE_MAX_YEAR = 2050 |
| const auto | DATE_MIN_YEAR = 1000 |
| constexpr std::initializer_list< std::pair< int, int > > | DATE_SPLITS [] |
| const auto | SHIFTED_RX = std::regex("[~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:\"ZXCVBNM<>?]") |
| const auto | MAX_DELTA = 5 |
| const auto | BRUTEFORCE_CARDINALITY = static_cast<guesses_t>(10) |
| const auto | MIN_GUESSES_BEFORE_GROWING_SEQUENCE = static_cast<guesses_t>(10000) |
| const auto | MIN_SUBMATCH_GUESSES_SINGLE_CHAR = static_cast<guesses_t>(10) |
| const auto | MIN_SUBMATCH_GUESSES_MULTI_CHAR = static_cast<guesses_t>(50) |
| const auto | START_UPPER = std::regex(R"(^[A-Z][^A-Z]+$)") |
| const auto | END_UPPER = std::regex(R"(^[^A-Z]+[A-Z]$)") |
| const auto | ALL_UPPER = std::regex(R"(^[^a-z]+$)") |
| const auto | ALL_LOWER = std::regex(R"(^[^A-Z]+$)") |
| const guesses_t | MIN_YEAR_SPACE = 20 |
| const auto | REFERENCE_YEAR = 2016 |
| using zxcvbn::date_t = typedef unsigned |
Definition at line 634 of file matching.cpp.
| using zxcvbn::degree_t = typedef double |
Definition at line 42 of file adjacency_graphs.hpp.
| using zxcvbn::DictionaryTag = typedef _frequency_lists::DictionaryTag |
Definition at line 13 of file frequency_lists.hpp.
| using zxcvbn::Graph = typedef std::unordered_map<std::string, std::vector<optional::optional<std::string> >> |
Definition at line 38 of file adjacency_graphs.hpp.
| using zxcvbn::Graphs = typedef std::unordered_map<GraphTag, Graph> |
Definition at line 39 of file adjacency_graphs.hpp.
| using zxcvbn::guesses_log10_t = typedef int |
Definition at line 16 of file common.hpp.
| using zxcvbn::guesses_t = typedef zxcvbn_guesses_t |
Definition at line 15 of file common.hpp.
| using zxcvbn::idx_t = typedef std::string::size_type |
Definition at line 18 of file common.hpp.
| using zxcvbn::rank_t = typedef std::size_t |
Definition at line 12 of file frequency_lists_common.hpp.
| using zxcvbn::RankedDict = typedef std::unordered_map<std::string, rank_t> |
Definition at line 13 of file frequency_lists_common.hpp.
| using zxcvbn::RankedDicts = typedef std::unordered_map<DictionaryTag, const RankedDict &> |
Definition at line 30 of file frequency_lists.hpp.
| using zxcvbn::score_t = typedef unsigned |
Definition at line 17 of file common.hpp.
| using zxcvbn::time_t = typedef double |
Definition at line 10 of file time_estimates.hpp.
|
strong |
| Enumerator | |
|---|---|
| QWERTY | |
| DVORAK | |
| KEYPAD | |
| MAC_KEYPAD | |
Definition at line 16 of file adjacency_graphs.hpp.
|
strong |
Definition at line 62 of file common.hpp.
|
strong |
| Enumerator | |
|---|---|
| RECENT_YEAR | |
| ALPHA_LOWER | |
| ALPHANUMERIC | |
Definition at line 31 of file common.hpp.
|
strong |
| Enumerator | |
|---|---|
| UPPER | |
| LOWER | |
| DIGITS | |
| UNICODE | |
Definition at line 37 of file common.hpp.
Definition at line 298 of file scoring.cpp.
| RankedDict zxcvbn::build_ranked_dict | ( | const T & | ordered_list | ) |
Definition at line 16 of file frequency_lists_common.hpp.
| RankedDicts zxcvbn::convert_to_ranked_dicts | ( | std::unordered_map< DictionaryTag, RankedDict > & | ranked_dicts | ) |
Definition at line 372 of file scoring.cpp.
| std::vector< Match > zxcvbn::date_match | ( | const std::string & | password | ) |
Definition at line 648 of file matching.cpp.
| RankedDicts zxcvbn::default_ranked_dicts | ( | ) |
Definition at line 19 of file frequency_lists.cpp.
| std::vector< Match > zxcvbn::dictionary_match | ( | const std::string & | password, |
| const RankedDicts & | ranked_dictionaries | ||
| ) |
Definition at line 143 of file matching.cpp.
| std::vector< std::unordered_map< std::string, std::string > > zxcvbn::enumerate_l33t_subs | ( | const std::unordered_map< std::string, std::vector< std::string >> & | table | ) |
| AttackTimes zxcvbn::estimate_attack_times | ( | guesses_t | guesses | ) |
Definition at line 20 of file time_estimates.cpp.
Definition at line 273 of file scoring.cpp.
| Tret zxcvbn::factorial | ( | Tin | n | ) |
Definition at line 31 of file scoring.cpp.
Definition at line 26 of file feedback.cpp.
| const Graphs & zxcvbn::graphs | ( | ) |
| std::vector< Match > zxcvbn::l33t_match | ( | const std::string & | password, |
| const RankedDicts & | ranked_dictionaries, | ||
| const std::vector< std::pair< std::string, std::vector< std::string >>> & | l33t_table | ||
| ) |
Definition at line 280 of file matching.cpp.
Definition at line 475 of file scoring.cpp.
| zxcvbn::MATCH_RUN | ( | ) |
| ScoringResult zxcvbn::most_guessable_match_sequence | ( | const std::string & | password, |
| std::vector< Match > & | matches, | ||
| bool | exclude_additive | ||
| ) |
Definition at line 93 of file scoring.cpp.
| T zxcvbn::nCk | ( | T | n, |
| T | k | ||
| ) |
| std::vector< Match > zxcvbn::omnimatch | ( | const std::string & | password, |
| const std::vector< std::string > & | ordered_list | ||
| ) |
Definition at line 109 of file matching.cpp.
Definition at line 340 of file scoring.cpp.
| std::vector< Match > zxcvbn::regex_match | ( | const std::string & | password, |
| const std::vector< std::pair< RegexTag, std::regex >> & | regexen | ||
| ) |
Definition at line 603 of file matching.cpp.
| std::unordered_map< std::string, std::vector< std::string > > zxcvbn::relevant_l33t_subtable | ( | const std::string & | password, |
| const std::vector< std::pair< std::string, std::vector< std::string >>> & | table | ||
| ) |
Definition at line 308 of file scoring.cpp.
| std::vector< Match > zxcvbn::repeat_match | ( | const std::string & | password | ) |
Definition at line 443 of file matching.cpp.
| std::vector< Match > zxcvbn::reverse_dictionary_match | ( | const std::string & | password, |
| const RankedDicts & | ranked_dictionaries | ||
| ) |
Definition at line 175 of file matching.cpp.
| std::vector< Match > zxcvbn::sequence_match | ( | const std::string & | password | ) |
Definition at line 512 of file matching.cpp.
Definition at line 337 of file matching.cpp.
Definition at line 293 of file scoring.cpp.
Definition at line 442 of file scoring.cpp.
| ZxcvbnResult zxcvbn::zxcvbn | ( | const std::string & | password, |
| const std::vector< std::string > & | user_inputs | ||
| ) |
| const Graphs zxcvbn::_graphs |
Definition at line 19 of file adjacency_graphs.cpp.
| const auto zxcvbn::ALL_LOWER = std::regex(R"(^[^A-Z]+$)") |
Definition at line 17 of file scoring.hpp.
| const auto zxcvbn::ALL_UPPER = std::regex(R"(^[^a-z]+$)") |
Definition at line 16 of file scoring.hpp.
| const auto zxcvbn::BRUTEFORCE_CARDINALITY = static_cast<guesses_t>(10) |
Definition at line 25 of file scoring.cpp.
| const auto zxcvbn::DATE_MAX_YEAR = 2050 |
Definition at line 45 of file matching.cpp.
| const auto zxcvbn::DATE_MIN_YEAR = 1000 |
Definition at line 46 of file matching.cpp.
|
constexpr |
Definition at line 47 of file matching.cpp.
| const Feedback zxcvbn::DEFAULT_FEEDBACK |
Definition at line 12 of file feedback.cpp.
| const auto zxcvbn::END_UPPER = std::regex(R"(^[^A-Z]+[A-Z]$)") |
Definition at line 15 of file scoring.hpp.
| const degree_t zxcvbn::KEYBOARD_AVERAGE_DEGREE = calc_average_degree(_graphs.at(GraphTag::QWERTY)) |
Definition at line 44 of file adjacency_graphs.hpp.
| const std::size_t zxcvbn::KEYBOARD_STARTING_POSITIONS = _graphs.at(GraphTag::QWERTY).size() |
Definition at line 47 of file adjacency_graphs.hpp.
| const degree_t zxcvbn::KEYPAD_AVERAGE_DEGREE = calc_average_degree(_graphs.at(GraphTag::KEYPAD)) |
Definition at line 45 of file adjacency_graphs.hpp.
| const std::size_t zxcvbn::KEYPAD_STARTING_POSITIONS = _graphs.at(GraphTag::KEYPAD).size() |
Definition at line 48 of file adjacency_graphs.hpp.
| const std::vector< std::pair< std::string, std::vector< std::string > > > zxcvbn::L33T_TABLE |
Definition at line 13 of file matching.hpp.
| const auto zxcvbn::MAX_DELTA = 5 |
Definition at line 511 of file matching.cpp.
| const auto zxcvbn::MIN_GUESSES_BEFORE_GROWING_SEQUENCE = static_cast<guesses_t>(10000) |
Definition at line 26 of file scoring.cpp.
| const auto zxcvbn::MIN_SUBMATCH_GUESSES_MULTI_CHAR = static_cast<guesses_t>(50) |
Definition at line 28 of file scoring.cpp.
| const auto zxcvbn::MIN_SUBMATCH_GUESSES_SINGLE_CHAR = static_cast<guesses_t>(10) |
Definition at line 27 of file scoring.cpp.
| const guesses_t zxcvbn::MIN_YEAR_SPACE = 20 |
Definition at line 19 of file scoring.hpp.
| const auto zxcvbn::no = optional::nullopt |
Definition at line 17 of file adjacency_graphs.cpp.
| const auto zxcvbn::REFERENCE_YEAR = 2016 |
Definition at line 20 of file scoring.hpp.
| const std::vector< std::pair< RegexTag, std::regex > > zxcvbn::REGEXEN |
Definition at line 14 of file matching.hpp.
| const auto zxcvbn::SHIFTED_RX = std::regex("[~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:\"ZXCVBNM<>?]") |
Definition at line 347 of file matching.cpp.
| const auto zxcvbn::START_UPPER = std::regex(R"(^[A-Z][^A-Z]+$)") |
Definition at line 14 of file scoring.hpp.
1.8.17