Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (24 sloc) 0.812 kb
// Store a password securely (if data encryption is provided by OS)
// or obfuscated to make search for password in memory dump less trivial.
class SecPassword
void Process(const wchar *Src,wchar *Dst,size_t MaxSize,bool Encode);
wchar Password[MAXPASSWORD];
// It is important to have this 'bool' value, so if our object is cleaned
// with memset as a part of larger structure, it is handled correctly.
bool PasswordSet;
void Clean();
void Get(wchar *Psw,size_t MaxSize);
void Set(const wchar *Psw);
bool IsSet() {return PasswordSet;}
size_t Length();
bool operator == (SecPassword &psw);
void cleandata(void *data,size_t size);
Jump to Line
Something went wrong with that request. Please try again.