PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Classes | Namespaces | Macros | Functions | Variables
scoring.cpp File Reference
#include <zxcvbn/scoring.hpp>
#include <zxcvbn/adjacency_graphs.hpp>
#include <zxcvbn/util.hpp>
#include <numeric>
#include <string>
#include <vector>
#include <cmath>
Include dependency graph for scoring.cpp:

Go to the source code of this file.

Classes

struct  std::hash< std::pair< T, U > >
 

Namespaces

 std
 
 zxcvbn
 

Macros

#define MATCH_FN(title, upper, lower)   : match.get_pattern() == MatchPattern::upper ? lower##_guesses
 

Functions

template<class Tret , class Tin >
Tret zxcvbn::factorial (Tin n)
 
ScoringResult zxcvbn::most_guessable_match_sequence (const std::string &password, std::vector< Match > &matches, bool exclude_additive)
 
guesses_t zxcvbn::estimate_guesses (Match &match, const std::string &password)
 
guesses_t zxcvbn::unknown_guesses (const Match &match)
 
guesses_t zxcvbn::bruteforce_guesses (const Match &match)
 
guesses_t zxcvbn::repeat_guesses (const Match &match)
 
guesses_t zxcvbn::sequence_guesses (const Match &match)
 
guesses_t zxcvbn::regex_guesses (const Match &match)
 
guesses_t zxcvbn::date_guesses (const Match &match)
 
guesses_t zxcvbn::spatial_guesses (const Match &match)
 
guesses_t zxcvbn::dictionary_guesses (const Match &match)
 
guesses_t zxcvbn::uppercase_variations (const Match &match)
 
guesses_t zxcvbn::l33t_variations (const Match &match)
 

Variables

const auto zxcvbn::BRUTEFORCE_CARDINALITY = static_cast<guesses_t>(10)
 
const auto zxcvbn::MIN_GUESSES_BEFORE_GROWING_SEQUENCE = static_cast<guesses_t>(10000)
 
const auto zxcvbn::MIN_SUBMATCH_GUESSES_SINGLE_CHAR = static_cast<guesses_t>(10)
 
const auto zxcvbn::MIN_SUBMATCH_GUESSES_MULTI_CHAR = static_cast<guesses_t>(50)
 

Macro Definition Documentation

◆ MATCH_FN

#define MATCH_FN (   title,
  upper,
  lower 
)    : match.get_pattern() == MatchPattern::upper ? lower##_guesses