Go Back   Internet Business Forums > Design & Development

Reply
 
Thread Tools Display Modes
Old 18-12-2006, 06:30 PM   #1 (permalink)
Senior Member
 
Join Date: Nov 2006
Posts: 119
Default Random Password Generator

Tutorial By: Baller_tk

Create a TextBox(text1)
Then create a CommandButton(command1)
Then insert this code:


Code:
Created by Baller_tk
'www.iCode.co.nr

Private Sub Command1_Click()
   Text1 = GenerateCode() 'make sure ur textbox is called Text1
End Sub

Public Function GenerateCode()
   strInputString = "1234567890abcdefghijklmnopqrstuvwxyz" 'these are the characters which will be in the password
   
   intLength = Len(strInputString)
   
   intNameLength = 7 'edit this according to how long u want ur password to be
   
   Randomize ' jus to make it random :D
   
   strName = ""
   
   For intStep = 1 To intNameLength
	   intRnd = Int((intLength * Rnd) + 1)
   
	   strName = strName & Mid(strInputString, intRnd, 1)
   Next
   
   GenerateCode = strName
End Function
DoomGuard is offline   Reply With Quote
Old 21-01-2007, 08:01 PM   #2 (permalink)
Member
 
Join Date: Jan 2007
Posts: 32
Default Re: Random Password Generator

Is not it better only:

Int (Rnd * number)
Legends is offline   Reply With Quote
Old 28-01-2007, 07:56 AM   #3 (permalink)
Senior Member
 
talsi123's Avatar
 
Join Date: Jan 2007
Location: Earth
Posts: 804
Default Re: Random Password Generator

thanks for this.
many password generators available on the net btw.
talsi123 is offline   Reply With Quote
Old 28-01-2007, 10:29 AM   #4 (permalink)
Senior Member
 
-Paul-'s Avatar
 
Join Date: Jan 2007
Location: At Home
Posts: 457
Send a message via AIM to -Paul- Send a message via MSN to -Paul-
Default Re: Random Password Generator

Thanks dude but i bet the guy has something y\to do with him recieving them passwords
__________________
-Paul- The Lonely Online Developer Heart

I Have Been The Only One Online For 3 Days Running I Mean Wtf I Might aswell Own This Place Or At Least Mod It
-Paul- is offline   Reply With Quote
Old 28-01-2007, 04:06 PM   #5 (permalink)
Senior Member
 
Join Date: Jan 2007
Posts: 112
Default Re: Random Password Generator

I want password generator with many functions. You can make addons in this program?
Thomaszek is offline   Reply With Quote
Old 28-02-2007, 06:12 PM   #6 (permalink)
Member
 
Join Date: Feb 2007
Posts: 99
Default Re: Random Password Generator

I need too...
If you can add some new functions... such as range of chars: 0-9, a-z etc...
Thanks anyway! It's a good start!
pushtiu is offline   Reply With Quote
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT +1. The time now is 10:39 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.