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

Tag | "Programming"

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:

Siyu

Class Siyu(){ function GetBrainSignals(){ //Assume that brain is 3-dimentional and rectangle =P   for (int iCount = 0; iCount <  brainWidth; i++){     for (int kCount = 0; kCount < brainLength; i++){       for (int jCount = 0; jCount < brainHeight; i++){         signals += retrieveSignals( brainWidth, brainLength, brainHeight );       }     }   }   if (signals == null){     return "Don't know myself";   else{     return signals;   } } //End function GetBrainSignals } //End Class Just imaginary codes. =)

Tags: , ,

Written by Felix Ker on December 21st, 2007 with 1 comment.
Read more articles on Just for fun.

Related entries:



Miscellaneous





web tracker



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