GeneratePassword Method
See Also 
SourceCode.Security.Cryptography Namespace > CryptoFactory Class : GeneratePassword Method



minLength
maxLength
alphaLower
alphaUpper
numeric
domains

Glossary Item Box

Syntax

Visual Basic (Declaration)  
<ObsoleteAttribute(Message="Security: Deprecated. Use GeneratePasswordChars() instead", IsError=True)>
Public Shared Function GeneratePassword( _
   ByVal minLength As Integer, _
   ByVal maxLength As Integer, _
   ByVal alphaLower As Boolean, _
   ByVal alphaUpper As Boolean, _
   ByVal numeric As Boolean, _
   ByVal ParamArray domains() As String _
) As String
Visual Basic (Usage) Copy Code
Dim minLength As Integer
Dim maxLength As Integer
Dim alphaLower As Boolean
Dim alphaUpper As Boolean
Dim numeric As Boolean
Dim domains() As String
Dim value As String
 
value = CryptoFactory.GeneratePassword(minLength, maxLength, alphaLower, alphaUpper, numeric, domains)
C#  
[Obsolete(Message="Security: Deprecated. Use GeneratePasswordChars() instead", IsError=true)]
public static string GeneratePassword( 
   int minLength,
   int maxLength,
   bool alphaLower,
   bool alphaUpper,
   bool numeric,
   params string[] domains
)
C++/CLI  
[Obsolete(Message="Security: Deprecated. Use GeneratePasswordChars() instead", IsError=true)]
public:
static String^ GeneratePassword( 
   int minLength,
   int maxLength,
   bool alphaLower,
   bool alphaUpper,
   bool numeric,
   ... array<String^>^ domains
) 

Parameters

minLength
maxLength
alphaLower
alphaUpper
numeric
domains

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also