Read on! Earnings from this blog will go to charity; to sponsor a child!

Tag | "Random"

How to generate random password (VB.Net/C#[ASP.Net]/PHP)


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: , , , , , , , , ,

Written by Felix Ker on March 29th, 2008 with 1 comment.
Read more articles on .NET and Programming.

Related entries:



Miscellaneous





web tracker



FAQ | Sitemap | Disclosure Policy | Privacy Policy
83 queries. 0.400 seconds.
© 2007 felixker.com (Felix Ker's blog)