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



minLength
maxLength
alphaLower
alphaUpper
numeric
domains

Glossary Item Box

Syntax

Visual Basic (Declaration)  
Public Shared Function GeneratePasswordSecure( _
   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 SecureString
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 SecureString
 
value = CryptoFactory.GeneratePasswordSecure(minLength, maxLength, alphaLower, alphaUpper, numeric, domains)
C#  
public static SecureString GeneratePasswordSecure( 
   int minLength,
   int maxLength,
   bool alphaLower,
   bool alphaUpper,
   bool numeric,
   params string[] domains
)
C++/CLI  
public:
static SecureString^ GeneratePasswordSecure( 
   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