Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

checkPassword

  • checkPassword(password: string, hash: string): Promise<boolean>
  • Checks if a password matching a hash.

    Parameters

    • password: string

      The unhashed password.

    • hash: string

      The password hash.

    Returns Promise<boolean>

    Promise, that indicates if password does match or not.

checkPasswordSync

  • checkPasswordSync(password: string, hash: string): boolean
  • Checks (synchronous) if a password matching a hash.

    Parameters

    • password: string

      The unhashed password.

    • hash: string

      The password hash.

    Returns boolean

    Promise, that indicates if password does match or not.

hashPassword

  • hashPassword(password: string): Promise<string>
  • Hashes a password string.

    Parameters

    • password: string

      The unhashed password.

    Returns Promise<string>

    The promise with the password hash.

hashPasswordSync

  • hashPasswordSync(password: string): string
  • Hashes a password string synchronous.

    Parameters

    • password: string

      The unhashed password.

    Returns string

    The password hash.

Generated using TypeDoc