Lately I was googling for the shortest and simplest way of generating some random passwords. So here we go. I'll share with you what I found and how I applied them.
VB.Net
Public Function GenerateRandomPassword(ByVal length as Integer) as String
Dim strGuid as String = System.Guid.NewGuid().ToString()
strGuid= strGuid.Replace("-", String.Empty)
Return strGuid.Substring(0, length)
End Function
Read the full story
Tags: .NET, ASp.Net, C#, Coding, Generate, Password, php, Programming, Random, vb.net
Written by Felix Ker on March 29th, 2008 with 1 comment.
Read more articles on .NET and Programming.
Related entries: