THStrings - component to hide strings from view.
The encryption used is a simple encryption not intended to keep out serious
attacks. It is intended to merely keep the strings hidden from view in the
.EXE file.
At design time or at run time, the strings are not encrypted. They are only
encrypted when they are stored in the .DFM (and the .EXE) because readdata
and writedata have been provided to handle this automatically.
To see how it works:
- plop one on your form.
- Put in some strings in.
- Save the form.
- Open the form as a .DFM in the IDE and look at the HStr property.
- You will see "garbage". Those are your strings.
example of use:
(assuming one of the strings in hstrings is password=SomePassword)
session.addpassword(hstrings1.values['password']);
Why named HStrings?? because the class name shows up in the .EXE file.
If I called it something like THiddenStrings or something it would make it
too easy.
Someone could add a real encryption algorithm and make this a little more
useful.
Georg Zimmer
THStrings -
Register -
procedure Register;