Robert Meek wrote: > The thing is, the stream methods as in my last message, will do fine > in those instances where for example, encryption is turned on by a user > while working in a memo, however the template I'm working on right now is > for one-time-per session use only.
What's the difference? Whether you encrypt something once, or many times, you still need an encryption algorithm, and you still need to put your data into a form the encrypter can work with. If you already have an encrypter that encrypts streams, then you may as well put your data into a stream. That should be much easier than adapting the encryption routine to work with other kinds of data; you might make a mistake in that and weaken the power of the encryption algorithm. > What I've been doing, and so far this > has worked really well for me in Delphi Win32 apps, is to install the app > and at the same time make an encrypted entry into the Local machine root > of > the Registry. I add an encrypted version of the app's CrC, and another of > the date and time it is installed. Each time the app is started, and no > matter what user is currently logged on, these two values are checked. If > they don't exist, the app is terminated. If they do, then a new CrC is > made, the stored one decrypted and a comparison done. If not the same the > app is terminated. So, if I were to distribute illegal copies of your program, all I'd need to do is make sure I distribute illegal copies of those registry entries, too? -- Rob _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

