By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,327 Members | 1,195 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,327 IT Pros & Developers. It's quick & easy.

how to make a random password

P: n/a
Is there a way to create unique passwords that are random

--
David Fetrow
Helixpoint LLC.
http://www.helixpoint.com
da***@helixpoint.com
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"DaveF" <df*****@geodecisions.com> wrote in news:#LXj9hIhEHA.3664
@TK2MSFTNGP11.phx.gbl:
Is there a way to create unique passwords that are random


There are several ways on Google:

http://www.obviex.com/Samples/Password.aspx

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 21 '05 #2

P: n/a
One algorithm is to chose numbers at random (which is in the libraries), and
convert them to characters by using the ASCII code. Then, store all of the
characters in an array and concatenate them to make a string.
Nov 21 '05 #3

P: n/a

"Hari" <ha***********@yahoo.com> wrote in message
news:ad********************@adelphia.com...
One algorithm is to chose numbers at random (which is in the libraries), and
convert them to characters by using the ASCII code. Then, store all of the
characters in an array and concatenate them to make a string.


Hari,

Here's a quick and dirty way to do it :)
Sub Main()
For i As Integer = 0 To 1000
Console.WriteLine(RandomPassword(10))
Next
End Sub

Private Function RandomPassword(ByVal Length As String) As String
Return GUID.NewGuid().ToString("N").Substring(0, Length)
End Function
Hope this helps some :)

Mythran
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.