Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 28th May 2010, 10:26 PM   #1
Mindset Immunity Mentor
War Room Member
 
mobiusman's Avatar
 
Join Date: 2006
Location: British Columbia, Canada.
Posts: 265
Thanks: 116
Thanked 51 Times in 34 Posts
Arrow
Password Script Help
Share on: 
fb share twitter share gplus share more share

Where can I get an ASP random password to send to people that sign up for my ecourse via email?

I need a random password that will be automatically sent to people via email and that will be no longer available once it has been activated. Can someone please tell me where I can get something like this?

Thanks

Mobiusman talks about the Head Brain/Gut Brain system. Did you know you have two different brains?
mobiusman is offline  
Unread 29th May 2010, 07:07 AM   #2
WP & PHP Expert...
War Room Member
 
newmoon's Avatar
 
Join Date: 2010
Posts: 34
Thanks: 3
Thanked 2 Times in 2 Posts
Default
Re: Password Script Help
Share on: 
fb share twitter share gplus share more share

Function generatePassword( allowNumbers )
NUMLOWER = 48 ' 48 = 0
NUMUPPER = 57 ' 57 = 9
LOWERBOUND = 65 ' 65 = A
UPPERBOUND = 90 ' 90 = Z
LOWERBOUND1 = 97 ' 97 = a
UPPERBOUND1 = 122 ' 122 = z
PASSWORD_LENGTH = 6

' initialize the random number generator
Randomize()

newPassword = ""
count = 0
DO UNTIL count = PASSWORD_LENGTH
If allowNumbers Then
pwd = Int( ( NUMUPPER - NUMLOWER ) * Rnd + NUMLOWER )
Else
' generate a num between 2 and 10 ;
' if num > 4 create an uppercase else create lowercase
If Int( ( 10 - 2 + 1 ) * Rnd + 2 ) > 4 Then
pwd = Int( ( UPPERBOUND - LOWERBOUND + 1 ) * Rnd + LOWERBOUND )
Else
pwd = Int( ( UPPERBOUND1 - LOWERBOUND1 + 1 ) * Rnd + LOWERBOUND1 )
End If
End If

newPassword = newPassword + Chr( pwd )

count = count + 1
Loop

generatePassword = newPassword
End Function
now call it like:
Generated with generatePassword(True): 850114
841824
717465
Generated with generatePassword(False): CDYmSL
uGChYD
dvEOFU
source: I can't post link
newmoon is offline  
Unread 29th May 2010, 08:59 AM   #3
WP & PHP Expert...
War Room Member
 
newmoon's Avatar
 
Join Date: 2010
Posts: 34
Thanks: 3
Thanked 2 Times in 2 Posts
Default
Re: Password Script Help
Share on: 
fb share twitter share gplus share more share

Hello,
You sent me an PM. I am tiny person here. I don't have privilege to reply.

I the thread I guess you said in ASP. ASP code won't work in the WordPress as WordPress is built using PHP.
newmoon is offline  
Unread 29th May 2010, 09:03 AM   #4
Mindset Immunity Mentor
War Room Member
 
mobiusman's Avatar
 
Join Date: 2006
Location: British Columbia, Canada.
Posts: 265
Thanks: 116
Thanked 51 Times in 34 Posts
Default
Re: Password Script Help
Share on: 
fb share twitter share gplus share more share

Is this script in ASP?
If yes then is there another
script that will work in WP?

Thanks newmoon:confused:

Mobiusman talks about the Head Brain/Gut Brain system. Did you know you have two different brains?
mobiusman is offline  
Unread 29th May 2010, 09:11 AM   #5
WP & PHP Expert...
War Room Member
 
newmoon's Avatar
 
Join Date: 2010
Posts: 34
Thanks: 3
Thanked 2 Times in 2 Posts
Default
Re: Password Script Help
Share on: 
fb share twitter share gplus share more share

sir, I have already answer you.

here is the PHP code to generate password:
In PHP it is easier. giving one example:



please see the attachment. don't know why PHP code does not work here (even with PHP bbcode)
Attached Files
File Type: txt phpcode.txt (244 Bytes, 3 views)
newmoon is offline  
The Following User Says Thank You to newmoon For This Useful Post:
Closed Thread


Bookmarks

Tags
password, script


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 Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 03:28 AM.