[fpc-pascal] Resource strings, passwords etc.

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Wed Jul 13 10:37:52 CEST 2016


On 2016-07-13 08:31, Mark Morgan Lloyd wrote:
> Sometimes it's difficult to avoid having to do that sort of thing, or 
> obfuscating them in an external file.

You could use something like DCPCrypt to help the cause. Or you could
follow similar tactics to what OnGuard uses - encode sensitive text in a
data structure. At the very least use a const of bytes instead of clear
text. For example:

const
  CKey : TKey =
($E5,$8F,$84,$D6,$92,$C9,$A4,$D8,$1A,$FA,$6F,$8D,$AB,$FC,$DF,$B4);


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp



More information about the fpc-pascal mailing list