Oslo

PasswordHashingAlgorithm

A generic interface for hashing and verifying passwords.

Definition

interface PasswordHashingAlgorithm {
	hash(password: string): Promise<string>;
	verify(hash: string, password: string): Promise<boolean>;
}

Methods

  • hash()
  • verify()

Implemented by