Crypto plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Updated author and download links, and changed format of some pages.)
m (Updated author links.)
Line 1: Line 1:
{|align=right
|<small>Author: [[{{ns:2}}:GAG|GAG]] ([[{{ns:3}}:GAG|talk]], [[{{ns:-1}}:Contributions/GAG|contrib]])</small>
|}
<br style="clear:both;">
== Links ==
== Links ==
Download plugin setup here:
Download plugin setup here:
Line 28: Line 32:
Hash Calculator: HashCalc.nsi
Hash Calculator: HashCalc.nsi
Simple test: CryptoTest.nsi
Simple test: CryptoTest.nsi
Page author: [[User:GAG|GAG]]

Revision as of 23:28, 29 April 2005

Author: GAG (talk, contrib)


Links

Download plugin setup here:

http://forums.winamp.com/attachment.php?s=&postid=1346355

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

Hash of String

Crypto::HashData "MD5" "String to be hashed"
Pop $0

Supported algorithms: MD5|SHA1|MD2|MD4

Hash of File

Crypto::HashFile "MD5" "$WINDIR\notepad.exe"
Pop $0

Supported algorithms: MD5|SHA1|MD2|MD4

Examples

Hash Calculator: HashCalc.nsi Simple test: CryptoTest.nsi