Lines Matching refs:password
26 // A helper function to get the length of the generated password from
27 // |max_length| retrieved from input password field.
35 // We want the password to have uppercase, lowercase, and at least one number.
36 bool VerifyPassword(const std::string& password) {
41 for (size_t i = 0; i < password.size(); ++i) {
42 if (password[i] >= kMinUpper && password[i] <= kMaxUpper)
44 if (password[i] >= kMinLower && password[i] <= kMaxLower)
46 if (password[i] >= kMinDigit && password[i] <= kMaxDigit)
54 // password. Assume that there already exists a lower case letter as it's the
56 void ForceFixPassword(std::string* password) {
57 for (std::string::iterator iter = password->begin();
58 iter != password->end(); ++iter) {
64 for (std::string::reverse_iterator iter = password->rbegin();
65 iter != password->rend(); ++iter) {
84 char password[255];
94 gen_pron_pass(password, unused_hypenated_password,
96 if (VerifyPassword(password))
100 // If the password still isn't conforming after a few iterations, force it
101 // to be so. This may change a syllable in the password.
102 std::string str_password(password);