chsvlib
chsv helper source code

◆ SecureFreeStringA()

void Chusov::String::SecureFreeStringA ( volatile char *  pszString)
noexcept

Performs secure deallocation of a string buffer randomizing its contents. It is designed to be a more secure version of FreeStringA.

Parameters
pszStringis a pointer to a string buffer to be randomized and freed.
Remarks
The function requires additional time overhead for randomizing the memory. Therefore if the string has no sensitive information it may be preferable to use FreeStringA to free the buffer.
See also
SecureFreeStringW;
FreeStringA;
AllocateStringA;
AllocateUniqueStringA.