Mitigate password exposure
Mitigate password exposure

Password processing should be classified as a high risk operation. In order
to mitigate its exposure, one should treat all related variables as a
potential security breach. Such variables should be cleaned after usage.

Another potential exposure might be done due to persistent storages used for
swap areas. If it is possible, all used memory buffers should be locked against
paging out.

Disclaimer:
This commit is only a tip of an ice-berg in the process of password exposure
mitigation.

mgumz/alock,mgumz/alock