Old 9th October 2009, 19:27   #1
Junior Member
Join Date: Oct 2009
Location: Dallas, TX
Posts: 1
Lightbulb Pwgen plugin (generate secure random passwords)

I've just developed a simple NSIS plugin to generate secure random passwords using the Microsoft CryptoAPI. I did this because I wasn't satisfied with the few predictable PRNG options available to NSIS currently.

This plugin consumes entropy from the OS. You specify the length of the password, and then that amount of entropy is squashed into the default 62-character set (upper and lower-case alphanumerics) and returned on the stack.

Example usage:

pwgen::GeneratePassword 10
pop $0
MessageBox MB_OK "New password: $0"

NSIS plugin wiki page: http://nsis.sourceforge.net/Pwgen_plug-in

The ZIP contains the binary, source, documentation and an example. I'm releasing this as Public Domain. Do with it as you please; no attribution required.
Attached Files
File Type: zip pwgen-001.zip (11.7 KB, 230 views)
cventers is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump