10 #ifndef SECURESTRING_HPP_
11 #define SECURESTRING_HPP_
85 void generateKey(
unsigned int size);
87 std::vector<unsigned char> key;
88 std::vector<unsigned char> content;
89 mutable char *decoded;
94 #endif // SECURESTRING_HPP_
SecureString()
Default constructor.
Definition: SecureString.cpp:18
SecureString & operator=(const SecureString &other)
Assignment operator.
Definition: SecureString.cpp:51
void clear()
Clears managed string.
Definition: SecureString.cpp:88
SecureString class, used to store strings like passwords etc. Current implementation encodes string i...
Definition: SecureString.hpp:26
void clearStr() const
Clears internal state after calling str(). To be used when string returned by str() is no longer need...
Definition: SecureString.cpp:95
virtual ~SecureString()
Destructor, virtual by default.
Definition: SecureString.cpp:110
bool operator==(const SecureString &other) const
Comparison operator.
Definition: SecureString.cpp:105
char * str() const
Returns managed string. When returned string is no longer needed, clearStr should be called...
Definition: SecureString.cpp:69