On Wed, 1 Nov 2006, Johannes Nohl wrote:
> Dear list, > > I was thinking of writing a daemon in freepascal. When the program is > started it will ask for a password. Then keep the pass in a string > variable, using it every 10 minutes. > > It's not for an high security environment but I'm interested in > general. How to protect those information in memory? Just keep the password encrypted in memory, and decrypt it before you use it. You can use the XOrEncode and XOrDecode functions for this. They are in the strutils unit. Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal