# GetRandomPassword Method Gets a cryptographically strong random password. ## Definition **Namespace:** CapyKit.Helpers **Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+6cdd805be49c3b769a116584ea6904955ecd820d **C#** ``` C# public static string GetRandomPassword( int length ) ``` **VB** ``` VB Public Shared Function GetRandomPassword ( length As Integer ) As String ``` **C++** ``` C++ public: static String^ GetRandomPassword( int length ) ``` **F#** ``` F# static member GetRandomPassword : length : int -> string ``` #### Parameters
  Int32
The length of the password to generate.
#### Return Value String The password. ## See Also #### Reference SecurityHelper Class CapyKit.Helpers Namespace