©️
Cross api
En-US
En-US
  • Introduction
  • Compatibility
  • Extensions
  • Usage
    • Tools
      • Config
      • ListProvider
      • Language
      • Help
    • Structure
      • MakeApi
      • MakeModule
      • MakeProvider
      • Revert
  • Structure
    • Root
    • Src
    • @Types
    • Assets
    • Config
    • Dtos
    • Jobs
    • Keys
    • Middlewares
    • Modules
    • Routes
    • Shared
    • Utils
  • Services
    • Transactions
    • Exists
    • FindBy
    • FindIn
    • FindLike
    • FindAll
    • Create
    • CreateMany
    • Update
    • UpdateMany
    • Delete
    • DeleteMany
    • SoftDelete
    • SoftDeleteMany
  • Mappers
    • CloneAttribute
    • UpdateAttribute
    • PatchAttribute
    • UpdateString
    • PatchString
    • InsertAttribute
  • Providers
    • Cache
    • Crypto
    • Hash
    • Lead
    • MailTemplate
    • Mail
    • Queue
    • Notification
    • Storage
Powered by GitBook
On this page
  • Available:
  • Methods:

Was this helpful?

  1. Providers

Hash

A hash implementation for encrypting passwords.

Available:

  • Bcrypt

  • Fake

Methods:

GenerateHash: Generates a hash of your keyword.

const password = '12345';

const data = await this.hashProvider.generateHash(password);

CompareHash: Compares the entered keyword to a previously generated hash.

const password = '12345';

const data = await this.hashProvider.compareHash(
  password,
  '$2b$10$NuU6SnBESq6DeNrLZ6/NEuj6jFgESyQkKluK6hJjPF8DFJNerO/Y6',
);

PreviousCryptoNextLead

Last updated 6 months ago

Was this helpful?