MD5 plugin: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Updated author links.)
(Update to support Unicode NSIS)
 
(19 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{|align=right
{{PageAuthor|PerditionC}}
|<small>Author: [[{{ns:2}}:PerditionC|PerditionC]] ([[{{ns:3}}:PerditionC|talk]], [[{{ns:-1}}:Contributions/PerditionC|contrib]])</small>
 
|}
<br style="clear:both;">
== Links ==
== Links ==
<attach>Md5dll.0.2.zip</attach><br>
Download:<br>
[[Image:Zip.gif]] [http://www.darklogic.org/win32/nsis/plugins/md5dll/md5dll.0.2.zip Md5dll.0.2.zip] (9 KB) (Mirror #1)
<attach>Md5dll.zip</attach><br>
[[Image:Zip.gif]] [http://www.fdos.org/win32/nsis/plugins/md5dll/md5dll.0.5.zip Md5dll.0.5.zip] (21 KB) (Mirror #1)
 
[http://www.fdos.org/win32/nsis/plugins/md5dll/ Older Versions of MD5 plugin]
 
[http://forums.winamp.com/showthread.php?threadid=117789 Original NSIS Forums Thread (for older versions)]


== Description ==
== Description ==
Generates a md5 value from either a string or contents of specified file.
Generates a [[wikipedia:MD5|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
Original:  MD5 Plugin DLL by Matthew "IGx89" Lieder, derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm


== Sample Usage ==
== Sample Usage ==
Line 16: Line 19:
OutFile "md5test.exe"
OutFile "md5test.exe"
Section ""
Section ""
   md5dll::GetMD5 "md5me"
  #generate MD5sum of string
   md5dll::GetMD5String "md5me"
   Pop $0
   Pop $0
   DetailPrint "md5: [$0]"
   DetailPrint "md5: [$0]"


   md5dll::GetFileMD5 "${NSISDIR}\makensis.exe"
  # generate MD5sum of file
   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]"
SectionEnd
SectionEnd
</highlight-nsis>
</highlight-nsis>
== Versions History ==
;0.5
:KJD (2010):
:*Unicode NSIS support: functionally identical to 0.4
:*Warning: passed strings and filenames must still be convertable to current code page (ASCII).
;0.4
:KJD (2005):
:*Added dual name to exports for backwards compatibility.
;0.3
:Shengalts Aleksander aka Instructor (2005):
:*New command: "GetMD5Random".
:*Changed names: "GetFileMD5" -> "GetMD5File", "GetMD5" -> "GetMD5String".
:*Fixed: string length error.
;0.2
:Davy Durham (2004):
:*MD5.cpp fix (correct for loop used to replace memset, exceeded bounds).
;0.1
:KJD (2004):
:*Modified to reduce size and use exdll.h (reduced to about 6KB uncompressed, by removing CRTL dependency).
;Original
:Matthew "IGx89" Lieder:
:*Original plugin Author.
:Sunjammer (12th May 2002):
:*Original usage notes and example script.
[[Category:Plugins]]

Latest revision as of 20:42, 23 January 2010

Author: PerditionC (talk, contrib)


Links

Download:
Md5dll.zip (21 KB)
Zip.gif Md5dll.0.5.zip (21 KB) (Mirror #1)

Older Versions of MD5 plugin

Original NSIS Forums Thread (for older versions)

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.5
KJD (2010):
  • Unicode NSIS support: functionally identical to 0.4
  • Warning: passed strings and filenames must still be convertable to current code page (ASCII).
0.4
KJD (2005):
  • Added dual name to exports for backwards compatibility.
0.3
Shengalts Aleksander aka Instructor (2005):
  • New command: "GetMD5Random".
  • Changed names: "GetFileMD5" -> "GetMD5File", "GetMD5" -> "GetMD5String".
  • Fixed: string length error.
0.2
Davy Durham (2004):
  • MD5.cpp fix (correct for loop used to replace memset, exceeded bounds).
0.1
KJD (2004):
  • Modified to reduce size and use exdll.h (reduced to about 6KB uncompressed, by removing CRTL dependency).
Original
Matthew "IGx89" Lieder:
  • Original plugin Author.
Sunjammer (12th May 2002):
  • Original usage notes and example script.