Diagram
  • Introduction
  • Get Started
    • Hello World
    • Connecting to a DB
    • From a template
  • Concepts
    • Endpoints
    • Algorithm
  • Nodes
    • Bcrypt
    • Code
    • Constant
    • Database
    • EasyDB
    • Firestore
    • If / Then
    • Request
    • Response
    • JWT
    • Mapper
    • MongoDB
    • Stripe
    • Webhook
  • Templates
    • Login
    • Register
    • Get User
  • Resources
    • Dashboard
    • Contact
    • FAQs
Powered by GitBook
On this page
  • General
  • Input
  • Output
  • Use Cases

Was this helpful?

  1. Nodes

Bcrypt

PreviousAlgorithmNextCode

Last updated 3 years ago

Was this helpful?

General

The Bcrypt node is hash plaintext and to compare plaintext with saved hashes.

Input

CASE: hash

  • Source: Receives a String with the plain text password to hash. Learn more on .

The salt rounds is set to 11.

CASE: compare

  • Source: Receives two values, a String with the plaintext password and another `String` with the hash to compare to. Learn more on .

Output

  • Out: Returns an Object with the specified HTTP request header fields (case-insensitive match). Learn more on .

Use Cases

Register a user with a password.

  • Request (Post) ➡ Bcrypt (Hash) ➡ Database (Add) ➡ Response (200)

Login a user with a password.

  • Request (Post) ➡ Database (Get) ➡ Bcrypt (Compare) ➡ Jwt (Sign) ➡ Response (200)

bcrypt.compare
bcrypt.compare
bcrypt.hash