mirror of
https://github.com/wagesj45/CapyKit.git
synced 2025-02-22 02:45:05 -06:00
1.2 KiB
1.2 KiB
GetRandomPassword Method
Gets a cryptographically strong random password.
Definition
Namespace: CapyKit.Helpers
Assembly: CapyKit (in CapyKit.dll) Version: 1.0.4
C#
public static string GetRandomPassword(
int length,
params ValidCharacterCollection[] validCharacters
)
F#
static member GetRandomPassword :
length : int *
validCharacters : ValidCharacterCollection[] -> string
Parameters
- Int32
- The length of the password to generate.
- ValidCharacterCollection[]
- An array of ValidCharacterCollection enumeration values representing the desired character sets.
Return Value
String
The password.