Crypto plug-in: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Adding new author and category links.) |
mNo edit summary |
||
Line 2: | Line 2: | ||
== Links == | == Links == | ||
[[File:Zip.gif]] [http://forums.winamp.com/attachment.php?postid=1346355 cryptoplg11.zip] (43 KB) (plugin dll + readme + examples) | |||
[http://forums.winamp.com/ | [http://forums.winamp.com/showthread.php?postid=1346355 Forum Thread] | ||
== Introduction == | == Introduction == | ||
Line 13: | Line 13: | ||
== How to use == | == How to use == | ||
=== Hash | |||
=== String Hash === | |||
<highlight-nsis> | <highlight-nsis> | ||
Crypto::HashData "MD5" "String to be hashed" | Crypto::HashData "MD5" "String to be hashed" | ||
Line 20: | Line 22: | ||
Supported algorithms: MD5|SHA1|MD2|MD4 | Supported algorithms: MD5|SHA1|MD2|MD4 | ||
=== Hash | === File Hash === | ||
<highlight-nsis> | <highlight-nsis> | ||
Crypto::HashFile "MD5" "$WINDIR\notepad.exe" | Crypto::HashFile "MD5" "$WINDIR\notepad.exe" | ||
Line 26: | Line 28: | ||
</highlight-nsis> | </highlight-nsis> | ||
Supported algorithms: MD5|SHA1|MD2|MD4 | Supported algorithms: MD5|SHA1|MD2|MD4 | ||
[[Category:Plugins]] | [[Category:Plugins]] |
Revision as of 10:36, 16 October 2005
Author: GAG (talk, contrib) |
Links
cryptoplg11.zip (43 KB) (plugin dll + readme + examples)
Introduction
This plugin provides you cryptographic interface using CryptoAPI. Using this plugin you can get common cryptographic hashes like MD5, SHA1, MD2, MD4.
Plugin DLL size: 3 660 bytes (not packed), 2 886 bytes (upx packed)
How to use
String Hash
Crypto::HashData "MD5" "String to be hashed" Pop $0
Supported algorithms: MD5|SHA1|MD2|MD4
File Hash
Crypto::HashFile "MD5" "$WINDIR\notepad.exe" Pop $0
Supported algorithms: MD5|SHA1|MD2|MD4