WINAMP.COM | Forums > Developer Center > NSIS Discussion > Generate Random Serial Number |
Last Thread
Next Thread
|
| Author |
|
|
kichik M.I.A. [NSIS Dev, Mod]
Registered: Oct 2001 |
You can get the current time using System.dll (search the forum for time and system, there are some topics about this) and pass it on to MD5. It's fairly random. __________________ |
||
|
|
|
ICONICS2000 Member
Registered: Mar 2003 |
Yeah thanks for the info, is there any way to decode the the MD5 string. Back to the original form |
||
|
|
|
kichik M.I.A. [NSIS Dev, Mod]
Registered: Oct 2001 |
No, MD5 is one way. If you want something you can decode back you can try the new Base64 encoder/decoder plug-in dselkirk wrote. __________________ |
||
|
|
|
lzandman Junior Member
Registered: Sep 2003 |
|
||
|
|
|
ICONICS2000 Member
Registered: Mar 2003 |
Does anybody have this compiled in a dll form, has i dont have VC on my actual development machine! |
||
|
|
|
brainsucker Senior Member
Registered: Sep 2002 |
QueryPerfomanceCounter gives 13 decimal digits for me (10 hours uptime, 1 ghz). That value can vary from computer to computer and from time to time, but that could be enough to use much simplier methods to get your serial. (see other random thread for QPC system call). |
||
|
|
|
kichik M.I.A. [NSIS Dev, Mod]
Registered: Oct 2001 |
Compiled version.
__________________ |
||
|
|
|
Yathosho Forum King
Registered: Jan 2002 |
how come there is no documentation on the syntax (tried forum and wiki)? __________________ |
||
|
|
|
kichik M.I.A. [NSIS Dev, Mod]
Registered: Oct 2001 |
It was probably in the original source file which is now lost. A quick disassembly shows it has two functions - Encode and Decode. Both accept a string in the stack and return the result on the stack as well. __________________ |
||
|
|
|
Last Thread Next Thread
|
WINAMP.COM | Forums > Developer Center > NSIS Discussion > Generate Random Serial Number |
Forum Rules:
|