# GetRandomPassword Method Gets a cryptographically strong random password. ## Definition **Namespace:** CapyKit.Helpers **Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.2 **C#** ``` C# public static string GetRandomPassword( int length, params ValidCharacterCollection[] validCharacters ) ``` **F#** ``` F# static member GetRandomPassword : length : int * validCharacters : ValidCharacterCollection[] -> string ``` #### Parameters
  Int32
The length of the password to generate.
  ValidCharacterCollection[]
\[Missing <param name="validCharacters"/> documentation for "M:CapyKit.Helpers.SecurityHelper.GetRandomPassword(System.Int32,CapyKit.Helpers.ValidCharacterCollection[])"\]
#### Return Value String The password. ## See Also #### Reference SecurityHelper Class CapyKit.Helpers Namespace