zibri
    Preparing search index...

    Class HashUtilitiesAbstract

    Provides utilities around hashing and comparing hashes.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Checks if the hash of the given value equals the hash.

      Parameters

      • value: string

        The value to compare.

      • hash: string

        The hash to compare against.

      Returns Promise<boolean>

      True when they are equal, false otherwise.

    • Hashes the given value.

      Parameters

      • value: string

        The value to hash.

      Returns Promise<string>

      A bcrypt hash.