WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > Generate Random Serial Number
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
ICONICS2000
Member

Registered: Mar 2003
From: England, uk

Generate Random Serial Number

Hi All

Does any body have a plugin or an algorthim which will allow me to generate a random serial ID about 10 characthers long, each time the installer is executed

cheers

Carlos

Quick Link | Report this post to a moderator | IP: Logged

ICONICS2000 is offline Old Post 09-23-2003 11:12 AM
Click Here to See the Profile for ICONICS2000 Click here to Send ICONICS2000 a Private Message Click Here to Email ICONICS2000 Find more posts by ICONICS2000 Add ICONICS2000 to your buddy list Edit/Delete Message Reply w/Quote
kichik
M.I.A.
[NSIS Dev, Mod]

Registered: Oct 2001
From: Israel

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.

__________________
NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius

Quick Link | Report this post to a moderator | IP: Logged

kichik is offline Old Post 09-23-2003 11:21 AM
Click Here to See the Profile for kichik Click here to Send kichik a Private Message Visit kichik's homepage! Find more posts by kichik Add kichik to your buddy list Edit/Delete Message Reply w/Quote
ICONICS2000
Member

Registered: Mar 2003
From: England, uk

Yeah thanks for the info, is there any way to decode the the MD5 string. Back to the original form

Quick Link | Report this post to a moderator | IP: Logged

ICONICS2000 is offline Old Post 09-23-2003 11:32 AM
Click Here to See the Profile for ICONICS2000 Click here to Send ICONICS2000 a Private Message Click Here to Email ICONICS2000 Find more posts by ICONICS2000 Add ICONICS2000 to your buddy list Edit/Delete Message Reply w/Quote
kichik
M.I.A.
[NSIS Dev, Mod]

Registered: Oct 2001
From: Israel

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.

__________________
NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius

Quick Link | Report this post to a moderator | IP: Logged

kichik is offline Old Post 09-23-2003 11:34 AM
Click Here to See the Profile for kichik Click here to Send kichik a Private Message Visit kichik's homepage! Find more posts by kichik Add kichik to your buddy list Edit/Delete Message Reply w/Quote
lzandman
Junior Member

Registered: Sep 2003
From: Groningen, NL

quote:
Originally posted by kichik
... and pass it on to MD5.
Oops, I missed that one. I created an NSIS MD5-plugin myself last week

Didn't know there was one already...

Quick Link | Report this post to a moderator | IP: Logged

lzandman is offline Old Post 09-23-2003 12:30 PM
Click Here to See the Profile for lzandman Click here to Send lzandman a Private Message Find more posts by lzandman Add lzandman to your buddy list Edit/Delete Message Reply w/Quote
ICONICS2000
Member

Registered: Mar 2003
From: England, uk

Does anybody have this compiled in a dll form, has i dont have VC on my actual development machine!

Quick Link | Report this post to a moderator | IP: Logged

ICONICS2000 is offline Old Post 09-23-2003 02:55 PM
Click Here to See the Profile for ICONICS2000 Click here to Send ICONICS2000 a Private Message Click Here to Email ICONICS2000 Find more posts by ICONICS2000 Add ICONICS2000 to your buddy list Edit/Delete Message Reply w/Quote
brainsucker
Senior Member

Registered: Sep 2002
From: Minsk, Belarus

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).

Quick Link | Report this post to a moderator | IP: Logged

brainsucker is offline Old Post 09-23-2003 10:26 PM
Click Here to See the Profile for brainsucker Click here to Send brainsucker a Private Message Find more posts by brainsucker Add brainsucker to your buddy list Edit/Delete Message Reply w/Quote
kichik
M.I.A.
[NSIS Dev, Mod]

Registered: Oct 2001
From: Israel

Compiled version.

Attachment: base64.zip
This has been downloaded 334 time(s).

__________________
NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius

Quick Link | Report this post to a moderator | IP: Logged

kichik is offline Old Post 09-23-2003 10:42 PM
Click Here to See the Profile for kichik Click here to Send kichik a Private Message Visit kichik's homepage! Find more posts by kichik Add kichik to your buddy list Edit/Delete Message Reply w/Quote
Yathosho
Forum King

Registered: Jan 2002
From: AT-DE

how come there is no documentation on the syntax (tried forum and wiki)?

__________________
Fossil 2002 III | VISBOT TV | NSIS Icons | PimpBot | Old Winamp Forums look?

Quick Link | Report this post to a moderator | IP: Logged

Yathosho is offline Old Post 02-01-2009 01:20 AM
Click Here to See the Profile for Yathosho Click here to Send Yathosho a Private Message Visit Yathosho's homepage! Find more posts by Yathosho Add Yathosho to your buddy list Edit/Delete Message Reply w/Quote
kichik
M.I.A.
[NSIS Dev, Mod]

Registered: Oct 2001
From: Israel

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.

__________________
NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius

Quick Link | Report this post to a moderator | IP: Logged

kichik is offline Old Post 02-01-2009 01:45 AM
Click Here to See the Profile for kichik Click here to Send kichik a Private Message Visit kichik's homepage! Find more posts by kichik Add kichik to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 07:05 PM. Post New Thread    Post A Reply
  Last Thread   Next Thread
WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > Generate Random Serial Number
Show Printable Version
 | 
Email this Page
 | 
Subscribe to this Thread

Forum Jump:
 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is off
vB code is ON
Smilies are ON
[IMG] code is ON