blob: 089edb0db139f28b327d5f78df23db71c8b42817 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "platform/secure_storage.hpp"
#include "platform/settings.hpp"
namespace platform
{
void SecureStorage::Save(std::string const & key, std::string const & value)
{
settings::Set(key, value);
}
bool SecureStorage::Load(std::string const & key, std::string & value)
{
bool const result = settings::Get(key, value);
return result && !value.empty();
}
void SecureStorage::Remove(std::string const & key)
{
settings::Set(key, std::string());
}
} // namespace platform
|