2024-04-19 23:12:24 -05:00
|
|
|
|
# CompareHashedPassword Method
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Compares an unencrypted *providedPassword* with a stored, encrypted *existingPassword*.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Definition
|
2024-04-21 03:30:36 -05:00
|
|
|
|
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
2024-04-21 01:20:26 -05:00
|
|
|
|
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
2024-04-19 23:12:24 -05:00
|
|
|
|
|
|
|
|
|
**C#**
|
|
|
|
|
``` C#
|
|
|
|
|
public static bool CompareHashedPassword(
|
|
|
|
|
string providedPassword,
|
|
|
|
|
string existingPassword
|
|
|
|
|
)
|
|
|
|
|
```
|
|
|
|
|
**F#**
|
|
|
|
|
``` F#
|
|
|
|
|
static member CompareHashedPassword :
|
|
|
|
|
providedPassword : string *
|
|
|
|
|
existingPassword : string -> bool
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### Parameters
|
|
|
|
|
<dl><dt> <a href="https://learn.microsoft.com/dotnet/api/system.string" target="_blank" rel="noopener noreferrer">String</a></dt><dd>The provided password, unencrypted.</dd><dt> <a href="https://learn.microsoft.com/dotnet/api/system.string" target="_blank" rel="noopener noreferrer">String</a></dt><dd>The existing, encrypted password.</dd></dl>
|
|
|
|
|
|
|
|
|
|
#### Return Value
|
|
|
|
|
<a href="https://learn.microsoft.com/dotnet/api/system.boolean" target="_blank" rel="noopener noreferrer">Boolean</a>
|
|
|
|
|
true if hash comparison succeeds, false if it fails.
|
|
|
|
|
|
|
|
|
|
## 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>
|