views:

202

answers:

2

how to a generator ramdom password in vb.net...can u tel me a any algorithms,any method() or codings to do so .. plz reply me.......mine s a web application were i shd generate password and send it to user .. and tat password wil be their life time password..so it shd b unique too

+1  A: 

Try out this blog. Random strings is basically generating random numbers and then casting them into a string.

stimms
+3  A: 

Try System.Web.Security.Membership.GeneratePassword

 Dim password as String = GeneratePassword(8,2)

Also, see this other question: http://stackoverflow.com/questions/2266721/how-to-generate-a-strong-password-in-c

slolife
Oooh, cool. This is a much better answer than mine +1
stimms