blob: a0426120a34406a8ed115922681f52cc5954867c [file] [log] [blame]
// Copyright 2014 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.
#include "components/password_manager/core/browser/login_database.h"
#include "base/strings/utf_string_conversions.h"
namespace password_manager {
// TODO: Actually encrypt passwords on Linux.
LoginDatabase::EncryptionResult LoginDatabase::EncryptedString(
const base::string16& plain_text,
std::string* cipher_text) const {
*cipher_text = base::UTF16ToUTF8(plain_text);
return ENCRYPTION_RESULT_SUCCESS;
}
LoginDatabase::EncryptionResult LoginDatabase::DecryptedString(
const std::string& cipher_text,
base::string16* plain_text) const {
*plain_text = base::UTF8ToUTF16(cipher_text);
return ENCRYPTION_RESULT_SUCCESS;
}
} // namespace password_manager