Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 19th, 2004, 11:10 AM
Authorized User
 
Join Date: Aug 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Prabhakar_dt
Default Random Generation of Username and Password

Hi, To all of you.
Please give me code that how i can generate random username and password in asp using vbscipt or javascript.

Prabhakar

Prabhakar Kumar
__________________
Prabhakar Kumar
 
Old August 19th, 2004, 11:27 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Perhaps you should start by posting your question in an appropriate forum? Then you can tell us what problems your having and me might be able to assist you


Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old August 31st, 2004, 06:45 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

I guess a moderator’s job is to be a little harsh when necessary. This is not a JS forum however VBScript has everything to do with ASP. If this post was in the pro section I would agree, however....

Anyway, I wouldn’t suggest JS. This is a client side language, your algorithm would be in the source for all to see and crack (may as well not bother with the log in)
---------------------cut n paste start----------------
<%
'generate an 8 char random password
For intCounter = 1 To 8
    Randomize
    intDecimal = Int((26 * Rnd) + 1) + 64
    'build Password String
    strPassword = strPassword & Chr(intDecimal)
Next
Response.Write "Random Password = " & strPassword
%>
---------------------cut n paste finish----------------

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Random Number Generation i_shahid C# 2005 2 March 31st, 2008 10:50 PM
Generation of alphanumeric random characters sajid_pk ASP.NET 1.0 and 1.1 Professional 1 May 10th, 2005 08:37 AM
random file generation Ashleek007 Beginning PHP 1 February 24th, 2005 03:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.