Table of Contents

IPasswordHasher.HashPassword Method

Hashes a password, returning the value to be stored for the user.

Syntax

Unit: Sphinx.PasswordHasher

function IPasswordHasher.HashPassword(User: TUser; const Password: string): string; virtual; abstract;

Parameters

<-> Parameter Type Description
User TUser The user the password belongs to.
const Password string The plain-text password to hash.

Returns

The hashed representation to persist (Sphinx stores it as the user's password hash). The value should carry everything VerifyHashedPassword needs to validate it later (such as algorithm identifier, parameters and salt).

See also