Changeset 112104 in webkit
- Timestamp:
- Mar 26, 2012 8:37:11 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r112102 r112104 1 2012-03-26 Jonathan Dong <jonathan.dong@torchmobile.com.cn> 2 3 [BlackBerry] CredentialBackingStore implement encryptString() and decryptString() 4 https://bugs.webkit.org/show_bug.cgi?id=82204 5 6 Reviewed by Rob Buis. 7 8 Implemented encryptedString() and decryptedString() in class CredentialBackingStore 9 by calling BlackBerry::Platform::Encryptor::encryptString() and 10 BlackBerry::Platform::Encryptor::encryptString() respectively. 11 12 No new tests. 13 14 * platform/network/blackberry/CredentialBackingStore.cpp: 15 (WebCore::CredentialBackingStore::encryptedString): 16 (WebCore::CredentialBackingStore::decryptedString): 17 1 18 2012-03-26 Pavel Feldman <pfeldman@chromium.org> 2 19 -
trunk/Source/WebCore/platform/network/blackberry/CredentialBackingStore.cpp
r111811 r112104 29 29 #include "SQLiteStatement.h" 30 30 #include <BlackBerryPlatformClient.h> 31 #include <BlackBerryPlatformEncryptor.h> 31 32 32 33 #define HANDLE_SQL_EXEC_FAILURE(statement, returnValue, ...) \ … … 424 425 String CredentialBackingStore::encryptedString(const String& plainText) const 425 426 { 426 // FIXME: Need encrypt plainText here427 notImplemented();428 return plainText;427 std::string cipherText; 428 BlackBerry::Platform::Encryptor::encryptString(std::string(plainText.latin1().data()), &cipherText); 429 return String(cipherText.c_str()); 429 430 } 430 431 431 432 String CredentialBackingStore::decryptedString(const String& cipherText) const 432 433 { 433 // FIXME: Need decrypt cipherText here434 notImplemented();435 return cipherText;434 std::string plainText; 435 BlackBerry::Platform::Encryptor::decryptString(std::string(cipherText.latin1().data()), &plainText); 436 return String(plainText.c_str()); 436 437 } 437 438
Note: See TracChangeset
for help on using the changeset viewer.