Page 1 of 1 1
Topic Options
#81835 - 2003-09-01 03:42 PM MD5()
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
If I remember correctly, there was some suggestion about MD5 before. Anyhow, thought I'd bring it to surface once again as it would be really useful for many things (file verification, uniqueness in naming etc).

Was thinking about a function something like this:

MD5("filename", optional checksum)

ie; to create a checksum:
$checksum = MD5("C:\kix32.exe")

For checksum creation, the function could return the checksum, or an errorcode.

To verify a checksum:
$result = MD5("C:\kix32.exe", 882022497d2b3f26d213bcb4b34a1341)

For verification, the function could return 0 if it's a match, or either an errorcode or the correct checksum if it's a non-match.

?

[ 01. September 2003, 18:11: Message edited by: masken ]
_________________________
The tart is out there

Top
#81836 - 2003-09-01 03:45 PM Re: MD5()
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Since KiXtart can only read a file as ASCII a single line, I do not think that KiXtart can perform that calculation.

I do provide a CRC32.exe on my website that can be used for this purpose if you need this functionality.

It would be nice to have some of this internal to KiXtart.

[ 01. September 2003, 15:46: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#81837 - 2003-09-01 03:50 PM Re: MD5()
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
Ok.. so KiX can't read a binary? [Embarrassed]

hmm... CRC32 is too weak/unreliable I think, I've had many examples of that (even with smaller files, although CRC32 gets really unreliable at 10mb+), that's why I suggested the 128bit MD5 instead. But if it can't be done, that's too bad I guess [Frown]

Although I can't imagine that it cannot be coded, quite easily too [Wink]

btw; another one that would save some coding is a macro like @TIMESTAMP, that would produce for example:
"20030901162047", ie; no slashes or colons etc...

[ 01. September 2003, 16:11: Message edited by: masken ]
_________________________
The tart is out there

Top
#81838 - 2003-09-01 04:49 PM Re: MD5()
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
The MD5() suggestion does have merit and possibilities. I challenge the value though of @timestamp. Easily done with Join(Split()).
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#81839 - 2003-09-02 05:50 AM Re: MD5()
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
quote:

that's why I suggested the 128bit MD5 instead

Does this mean that Blowfish and other methods are coming? [Roll Eyes] I thought that is what KiXCrypt was about? That is encrypting the script.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#81840 - 2003-09-02 09:59 AM Re: MD5()
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
quote:
I thought that is what KiXCrypt was about? That is encrypting the script.
Two different things, although they are often closely related.

The MD5 checksum is simply used to check with a near degree of certainty that a file (or other arbitrary data) is unchanged.

In an administration context this is useful for checking if
  • A file is out of date (version control)
  • A file has been changed (requires backing up)
  • If a downloaded/emailed file is the same as the original
In a security context it is useful for checking if a file or email has been tampered with. As a real world example, you can fingerprint all the files on a PC and spot any unexpected changes.
You will often see MD5 sums associated with things like PGP messages and files, but the actual algorithm used is normally RSA.

Top
#81841 - 2003-09-23 06:07 PM Re: MD5()
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
Nicely put, Richard [Smile]

(bad excuse for a bump & Ruud attention [Wink] )
_________________________
The tart is out there

Top
Page 1 of 1 1


Moderator:  Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 507 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.056 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org