zibri
    Preparing search index...

    Interface for a hash service.

    interface HashServiceInterface {
        equal: (value: string, hash: HashString) => boolean | Promise<boolean>;
        hash: <THashOptions extends AnyObject>(
            value: string,
            options?: HashOptions<THashOptions>,
        ) => HashString | Promise<HashString>;
        needsRehash: (hash: HashString) => boolean | Promise<boolean>;
    }

    Implemented by

    Index

    Properties

    equal: (value: string, hash: HashString) => boolean | Promise<boolean>

    Checks whether or not the given value equals the given hash.

    hash: <THashOptions extends AnyObject>(
        value: string,
        options?: HashOptions<THashOptions>,
    ) => HashString | Promise<HashString>

    Hashes the given value with the given options.

    needsRehash: (hash: HashString) => boolean | Promise<boolean>

    Checks if the given hash should be rehashed.