#81835 - 2003-09-01 03:42 PM
MD5()
|
masken
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
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 ]
|
|
Top
|
|
|
|
#81837 - 2003-09-01 03:50 PM
Re: MD5()
|
masken
MM club member
   
Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
|
|
|
Top
|
|
|
|
#81839 - 2003-09-02 05:50 AM
Re: MD5()
|
Kdyer
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? I thought that is what KiXCrypt was about? That is encrypting the script.
Kent
|
|
Top
|
|
|
|
#81840 - 2003-09-02 09:59 AM
Re: MD5()
|
Richard H.
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
|
|
|
|
Moderator: Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 363 anonymous users online.
|
|
|