You can look at the OnGuard library from TurboPower which is now no
SourceForge at http://sourceforge.net/projects/tponguard/ which is now
completely free.
This OnGuard has a component called OgProtectExe which does exactly what you
want, protecting applications against unauthorized changes. I use this
approach quite frequently.
Drop the non-visual component onto your form and call "OgProtectExe.CheckExe
(true);" at runtime. Develop a On..Checked callback like the one below.
That's all;
{--------------------------------------------------------------------------------}
procedure TfrmMain.OgProtectExeChecked(Sender: TObject;
Status: TExeStatus);
{--------------------------------------------------------------------------------}
begin
case Status of
exeSuccess : ...
exeSizeError : ...
exeIntegrityError : ...
exeNotStamped : ...
else ...
end; {case}
end;
vriendelijke groeten,
Ronny Aerts - zaakvoerder GraSoft
----- Original Message -----
From: "Cihan" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, January 19, 2006 9:47 PM
Subject: Re: [delphi-en] Including a file integrity check using md5
I am using the md5 unit written by Matthias Fichtner.
It produces md5 digests for many types of data (including files).
You can find it in the link below or at torry.net
http://www.fichtner.net/delphi/md5.delphi.phtml
petesouthwest <[EMAIL PROTECTED]> wrote:
Hi
I'm not sure if I'm being really daft or what but I seem to be in a
chicken/egg situation.
I have been trying to include a file integrity check for my
application using md5 hashing of the file. The problem is every time I
include the hash value, it changes the fileâ?Ts hash value and thus the
compare fails!
I have read that itâ?Ts a good thing to do as it provides another trap
that potential hackers have to overcome, and also verifies that the
app has been downloaded without error. With that in mind I would have
preferred not to have saved the value to file, as I believe its easier
for a hacker to monitor for a file read, than to find the code if its
triggered from a timer and hardcoded?
Thanks
Pete
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "delphi-en" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
_ .
<_ [ |-| /-\ |\|
---------------------------------
Yahoo! Photos
Got holiday prints? See all the ways to get quality prints in your hands
ASAP.
[Non-text portions of this message have been removed]
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/