C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






Generate New Random Password


Posted Date: 25 Mar 2008    Resource Type: Code Snippets    Category: Tools

Posted By: Chintan Soni       Member Level: Bronze
Rating:     Points: 7



This function generates new random password of a given length. It supports maximum of 32 character of password. If length is given beyond 32 it will give ArgumentOutOfBound exception which is to be handled.



Private Function GetNewPassword(ByVal length As Integer) As String

Dim strNewPassword As String = ""

strNewPassword = System.Guid.NewGuid().ToString()

Return strNewPassword.Substring(0, length)

End Function





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Password Generator in VB.NET
Previous Resource: Porgrammatically retrieve properties of a PDF document
Return to Discussion Resource Index
Post New Resource
Category: Tools


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

SPOC

Contact Us    Privacy Policy    Terms Of Use