TechArena Community Generate an ASP page a password of 8 characters strong

#1
03-04-2009
 Member Join Date: Jan 2009 Posts: 37
Generate an ASP page a password of 8 characters strong

hi
i am here to ask you question about asp. i am working on asp i am newly learning on this here i want to know how can i generate an ASP page a password of 8 characters strong.please tell me if someone knows thank you
#2
03-04-2009
 Member Join Date: Jan 2008 Posts: 1,515
Re: Generate an ASP page a password of 8 characters strong

Quote:
#3
03-04-2009
 Member Join Date: Dec 2008 Posts: 322
Re: Generate an ASP page a password of 8 characters strong

#4
03-04-2009
 Member Join Date: May 2008 Posts: 2,383
Re: Generate an ASP page a password of 8 characters strong

How to generate an ASP page a password hard on 8 characters (a, A, 0)

Source Code

Quote:
 <% gen_password function () word = "" er = 0 for cpt = 1 to 8 do while st <> 1 randomize int x = ((122 - 48 +1) * Rnd + 48) '--- product of the integers between 48 and 122 if x> 57 and x <65 then '--- test interval ds figure if unwanted er = 0 else if x> 90 and x <97 then '--- test interval ds figure if unwanted er = 0 else st = 1 '--- not figure unwanted interval ds end if end if loop y = chr (x) '--- convert a digit character word = word & y '--- create character concatenation er = 0 next gen_password word = '--- returns the word password end function %>

 Tags: asp