What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 3875 |  Welcome, Guest!   Register  Login
 Home > Code Snippets > VB.NET > Get Random Passward (String) Using GUID , Passward Length (Maximum) 36 Char ...
Chikul

Get Random Passward (String) Using GUID , Passward Length (Maximum) 36 Char

 Code Snippet posted by: Chikul | Posted on: 11/30/2009 | Category: VB.NET Codes | Views: 1402 | Status: [Member] | Alert Moderator   


' Get Random Passward (String) Using GUID
' GUID - Represents a Globally unique identifier.
' Purpose : Function For Generatind Password Using System.Guid.NewGuid()
' Paramete : Length - Passward Length (Maximum) 36 Char


    Public Function GetRandomPasswordUsingGUID(ByVal length As Double) As String

Dim guidResult As String = System.Guid.NewGuid.ToString
If length <= 0 OrElse length > guidResult.Length Then
Throw New ArgumentException("Length must be between 1 and " & guidResult.Length)
End If
Return guidResult.Substring(0, length)
End Function

Found interesting? Add this to:


>> Write Response - Respond to this post and get points

More codes snippets

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/25/2013 12:27:56 AM