MD5 plugin: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Added "Versions History" header.) |
PerditionC (talk | contribs) m (→Sample Usage) |
||
Line 17: | Line 17: | ||
OutFile "md5test.exe" | OutFile "md5test.exe" | ||
Section "" | Section "" | ||
#generate MD5sum of string | |||
md5dll::GetMD5String "md5me" | md5dll::GetMD5String "md5me" | ||
Pop $0 | Pop $0 | ||
DetailPrint "md5: [$0]" | DetailPrint "md5: [$0]" | ||
# generate MD5sum of file | |||
md5dll::GetMD5File "${NSISDIR}\makensis.exe" | md5dll::GetMD5File "${NSISDIR}\makensis.exe" | ||
Pop $0 | |||
DetailPrint "md5: [$0]" | |||
#generate random MD5sum | |||
md5dll::GetMD5Random | |||
Pop $0 | Pop $0 | ||
DetailPrint "md5: [$0]" | DetailPrint "md5: [$0]" |
Revision as of 17:58, 3 July 2005
Author: PerditionC (talk, contrib) |
Links
Download:
Md5dll.zip (21 KB)
Md5dll.0.4.zip (13 KB) (Mirror #1)
Description
Generates a md5 value from either a string or contents of specified file.
Original: MD5 Plugin DLL by Matthew "IGx89" Lieder, derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm
Sample Usage
OutFile "md5test.exe" Section "" #generate MD5sum of string md5dll::GetMD5String "md5me" Pop $0 DetailPrint "md5: [$0]" # generate MD5sum of file md5dll::GetMD5File "${NSISDIR}\makensis.exe" Pop $0 DetailPrint "md5: [$0]" #generate random MD5sum md5dll::GetMD5Random Pop $0 DetailPrint "md5: [$0]" SectionEnd
Versions History
- 0.4
-
- KJD (2005):
- Added dual name to exports for backwards compatibility.
- KJD (2005):
- 0.3
-
- Shengalts Aleksander aka Instructor (2005):
- New command: "GetMD5Random".
- Changed names: "GetFileMD5" -> "GetMD5File", "GetMD5" -> "GetMD5String".
- Fixed: string length error.
- Shengalts Aleksander aka Instructor (2005):
- 0.2
-
- Davy Durham (2004):
- MD5.cpp fix (correct for loop used to replace memset, exceeded bounds).
- Davy Durham (2004):
- 0.1
-
- KJD (2004):
- Modified to reduce size and use exdll.h (reduced to about 6KB uncompressed, by removing CRTL dependency).
- KJD (2004):
- Original
-
- Matthew "IGx89" Lieder:
- Original plugin Author.
- Sunjammer (12th May 2002):
- Original usage notes and example script.
- Matthew "IGx89" Lieder: