Options
All
  • Public
  • Public/Protected
  • All
Menu

Module background/methods/passwords

Index

Functions

Functions

  • hashPassword(password: string): Promise<undefined | string>
  • Hashes a password using the SHA-256 algorithm.

    example
    // returns 7B1A454E41944B1FD6EB9AC7B1CA6998C4D9263650D257B9B54D0A8FA8A2EFD5
    let hashedPassword = await hashPassword("Here1AmHere1Remain.");

    Parameters

    • password: string

      The password to hash.

    Returns Promise<undefined | string>

    The hash of the password.

Generated using TypeDoc version 0.22.15, the 4/20/2022