blob: 0adbd435f43627877a26595ce8d54079e397a196 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_AUTOFILL_PASSWORD_GENERATOR_H_
#define CHROME_BROWSER_AUTOFILL_PASSWORD_GENERATOR_H_
#pragma once
#include <string>
#include "base/basictypes.h"
namespace autofill {
// Class to generate random passwords. Currently we just use a generic algorithm
// for all sites, but eventually we can incorporate additional information to
// determine passwords that are likely to be accepted (i.e. use pattern field,
// previous generated passwords, crowdsourcing, etc.)
class PasswordGenerator {
public:
PasswordGenerator();
~PasswordGenerator();
// Returns a random password. The string is guaranteed to be printable and
// will not include whitespace characters.
std::string Generate();
private:
DISALLOW_COPY_AND_ASSIGN(PasswordGenerator);
};
} // namespace autofill
#endif // CHROME_BROWSER_AUTOFILL_PASSWORD_GENERATOR_H_
|