[fpc-pascal] Is it necessary to protect passed passwords in memory?

Johannes Nohl johannes.nohl at gmail.com
Wed Nov 1 18:13:56 CET 2006


> And where do you think the phrase 'My Secret Password' would be stored
> other than memory?

so you have to override variables after use? like

var pwd: array[0..15] of char;
     xpwd: string;

[...]

readln(pwd);
xpwd := encrypt(pwd);
pwd := '123456789012345'; // override

[...]

???



More information about the fpc-pascal mailing list