SecureString class, used to store strings like passwords etc. Current implementation encodes string into two strings using simple XOR encoding.
More...
#include <SecureString.hpp>
SecureString class, used to store strings like passwords etc. Current implementation encodes string into two strings using simple XOR encoding.
- Todo:
- Currently this class in not secure at all, but in future may be extended to keep strings in memory in more secured way.
OpenAB::SecureString::SecureString |
( |
| ) |
|
OpenAB::SecureString::SecureString |
( |
const char * |
str | ) |
|
Constructor.
- Parameters
-
[in] | str | string to be managed by this object. |
OpenAB::SecureString::SecureString |
( |
const std::string & |
str | ) |
|
Constructor.
- Parameters
-
[in] | str | string to be managed by this object. |
OpenAB::SecureString::SecureString |
( |
const SecureString & |
other | ) |
|
OpenAB::SecureString::~SecureString |
( |
| ) |
|
|
virtual |
Destructor, virtual by default.
void OpenAB::SecureString::clear |
( |
| ) |
|
void OpenAB::SecureString::clearStr |
( |
| ) |
const |
Clears internal state after calling str(). To be used when string returned by str() is no longer needed.
bool OpenAB::SecureString::operator== |
( |
const SecureString & |
other | ) |
const |
char * OpenAB::SecureString::str |
( |
| ) |
const |
Returns managed string. When returned string is no longer needed, clearStr should be called.
- Returns
- managed string.
The documentation for this class was generated from the following files: