Click or drag to resize
PasswordHasherTUserHashPassword Method
Returns a hashed representation of the supplied password for the specified user.

Namespace: Kentico.Membership
Assembly: Kentico.Membership (in Kentico.Membership.dll) Version: 13.0.131
Syntax
C#
public string HashPassword(
	TUser user,
	string password
)

Parameters

user
Type: TUser
The user whose password is to be hashed.
password
Type: SystemString
The password to hash.

Return Value

Type: String
A hashed representation of the supplied password for the specified user.

Implements

IPasswordHasher.HashPassword(UTP, String)
Exceptions
ExceptionCondition
ArgumentNullExceptionuser
See Also