summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 85ca6f4)
raw | patch | inline | side by side (parent: 85ca6f4)
author | theadib <theadib@users.sourceforge.net> | |
Mon, 31 Dec 2007 18:11:40 +0000 (18:11 +0000) | ||
committer | theadib <theadib@users.sourceforge.net> | |
Mon, 31 Dec 2007 18:11:40 +0000 (18:11 +0000) |
packaging/win32/md5dll.txt | [new file with mode: 0644] | patch | blob |
diff --git a/packaging/win32/md5dll.txt b/packaging/win32/md5dll.txt
--- /dev/null
@@ -0,0 +1,68 @@
+Calculates the md5sum of a file or string.\r
+Has been tested to work with NSIS 2.0+\r
+\r
+\r
+Derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm\r
+\r
+[Md5Dll]\r
+Matthew "IGx89" Lieder\r
+ -Original plugin Author\r
+\r
+Sunjammer (12th May 2002)\r
+ -Original usage notes and example script \r
+\r
+[Md5Dll.0.1]\r
+KJD (2004)\r
+ -Modified to reduce size and use exdll.h\r
+ (reduced to about 6KB uncompressed, by removing CRTL dependency)\r
+\r
+[Md5dll.0.2]\r
+Davy Durham (2004)\r
+ -MD5.cpp fix (correct for loop used to replace memset, exceeded bounds)\r
+\r
+[Md5dll.0.3]\r
+Shengalts Aleksander aka Instructor (2005)\r
+ -New command: "GetMD5Random"\r
+ -Changed names: "GetFileMD5" -> "GetMD5File", "GetMD5" -> "GetMD5String"\r
+ -Fixed: string length error\r
+\r
+[Md5dll.0.4]\r
+KJD (2005)\r
+ -Added dual name to exports for backwards compatibility\r
+\r
+\r
+--------------------------------\r
+\r
+Usage:\r
+\r
+Push $1 ;string\r
+CallInstDll "md5dll" GetMD5String\r
+Pop $1 ;md5 of string\r
+\r
+-or-\r
+\r
+Push $1 ;filename\r
+CallInstDll "md5dll" GetMD5File\r
+Pop $1 ;md5 of file\r
+\r
+--------------------------------\r
+\r
+Example usage in recent NSIS versions\r
+\r
+OutFile "md5test.exe"\r
+Section ""\r
+ #generate MD5sum of a string\r
+ md5dll::GetMD5String "md5me"\r
+ Pop $0\r
+ DetailPrint "md5: [$0]"\r
+\r
+ # generate MD5sum of a file\r
+ md5dll::GetMD5File "${NSISDIR}\makensis.exe"\r
+ Pop $0\r
+ DetailPrint "md5: [$0]"\r
+\r
+ #generate random MD5sum\r
+ md5dll::GetMD5Random\r
+ Pop $0\r
+ DetailPrint "md5: [$0]"\r
+SectionEnd\r