This source file includes following definitions.
- EncryptString
- DecryptString
#include "components/sync_driver/system_encryptor.h"
#include "components/os_crypt/os_crypt.h"
namespace browser_sync {
SystemEncryptor::~SystemEncryptor() {}
bool SystemEncryptor::EncryptString(const std::string& plaintext,
std::string* ciphertext) {
return ::OSCrypt::EncryptString(plaintext, ciphertext);
}
bool SystemEncryptor::DecryptString(const std::string& ciphertext,
std::string* plaintext) {
return ::OSCrypt::DecryptString(ciphertext, plaintext);
}
}