1c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Copyright (c) 2010 The Chromium Authors. All rights reserved. 2c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Use of this source code is governed by a BSD-style license that can be 3c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// found in the LICENSE file. 4c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch 5c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch#include "chrome/browser/password_manager/login_database.h" 6c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch 73345a6884c488ff3a535c2c9acdd33d74b37e311Iain Merrick#include "base/utf_string_conversions.h" 83345a6884c488ff3a535c2c9acdd33d74b37e311Iain Merrick 9c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// TODO: Actually encrypt passwords on Linux. 10c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch 11c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochstd::string LoginDatabase::EncryptedString(const string16& plain_text) 12c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch const { 133345a6884c488ff3a535c2c9acdd33d74b37e311Iain Merrick return UTF16ToUTF8(plain_text); 14c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch} 15c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch 16c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochstring16 LoginDatabase::DecryptedString(const std::string& cipher_text) 17c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch const { 183345a6884c488ff3a535c2c9acdd33d74b37e311Iain Merrick return UTF8ToUTF16(cipher_text); 19c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch} 20