CapyKit/Documentation/Help/M_CapyKit_Helpers_SecurityHelper_GetRandomPassword.md

41 lines
1.3 KiB
Markdown
Raw Normal View History

# GetRandomPassword Method
Gets a cryptographically strong random password.
## Definition
2024-04-21 03:30:36 -05:00
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
**C#**
``` C#
public static string GetRandomPassword(
2024-04-21 01:20:26 -05:00
int length,
params ValidCharacterCollection[] validCharacters
)
```
**F#**
``` F#
static member GetRandomPassword :
2024-04-21 01:20:26 -05:00
length : int *
validCharacters : ValidCharacterCollection[] -> string
```
#### Parameters
2024-04-21 03:30:36 -05:00
<dl><dt>  <a href="https://learn.microsoft.com/dotnet/api/system.int32" target="_blank" rel="noopener noreferrer">Int32</a></dt><dd>The length of the password to generate.</dd><dt>  <a href="T_CapyKit_Helpers_ValidCharacterCollection.md">ValidCharacterCollection</a>[]</dt><dd>\[Missing &lt;param name="validCharacters"/&gt; documentation for "M:CapyKit.Helpers.SecurityHelper.GetRandomPassword(System.Int32,CapyKit.Helpers.ValidCharacterCollection[])"\]</dd></dl>
#### Return Value
<a href="https://learn.microsoft.com/dotnet/api/system.string" target="_blank" rel="noopener noreferrer">String</a>
The password.
## See Also
#### Reference
2024-04-21 03:30:36 -05:00
<a href="T_CapyKit_Helpers_SecurityHelper.md">SecurityHelper Class</a>
<a href="N_CapyKit_Helpers.md">CapyKit.Helpers Namespace</a>