# CompareHashedPassword<T>(Password, String, Byte[], Object[]) Method Compares an unencrypted *password* with a stored, encrypted *existingPassword*. This method uses the specified password algorithm type *T* to retrieve the hashed version of the *password* and then compares it with the *existingPassword*. ## Definition **Namespace:** CapyKit.Helpers **Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0 **C#** ``` C# public static bool CompareHashedPassword( Password existingPassword, string password, byte[] salt, params Object[] args ) ``` **F#** ``` F# static member CompareHashedPassword : existingPassword : Password * password : string * salt : byte[] * args : Object[] -> bool ``` #### Parameters
  Password
The existing, encrypted password.
  String
The unencrypted password to be compared.
  Byte[]
The salt value used in password hashing.
  Object[]
Additional arguments required for constructing the password algorithm instance.
#### Type Parameters
The type of the password hashing algorithm.
#### Return Value Boolean true if hash comparison succeeds, false if it fails. ## See Also #### Reference SecurityHelper Class CompareHashedPassword Overload CapyKit.Helpers Namespace