blob: ec10286a907a50f201f935ee0493eaadd2d62862 [file] [log] [blame]
// Copyright (c) 2013 The Chromium OS 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 ANONYMIZER_TOOL_H
#define ANONYMIZER_TOOL_H
#include <map>
#include <string>
#include <base/basictypes.h>
namespace debugd {
class AnonymizerTool {
public:
AnonymizerTool();
virtual ~AnonymizerTool();
// Returns an anonymized version of |input|. PII-sensitive data (such as MAC
// addresses) in |input| is replaced with unique identifiers.
std::string Anonymize(const std::string& input);
private:
friend class AnonymizerToolTest;
std::string AnonymizeMACAddresses(const std::string& input);
std::map<std::string, std::string> mac_addresses_;
DISALLOW_COPY_AND_ASSIGN(AnonymizerTool);
};
}; // namespace debugd
#endif // ANONYMIZER_TOOL_H