Lucia v3

LegacyScrypt.hash()

Method of LegacyScrypt. Hashes the provided password with scrypt.

Definition

function hash(password: string): Promise<string>;

Parameters

  • password

Example

const hash = await scrypt.hash(password);