npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@luka-cat-mimi/n8n-nodes-bcryptjs

v1.0.5

Published

n8n community node package that provides bcryptjs password hashing and verification functionality with full async operations support

Downloads

127

Readme

n8n-nodes-bcryptjs

n8n.io - Workflow Automation

This is an n8n community node that allows you to use bcryptjs for password hashing and verification operations in your n8n workflows.

n8n is a fair-code licensed workflow automation platform.

InstallationOperationsUsage ExamplesResources

Installation

Follow the installation guide in the n8n community nodes documentation.

Community Nodes Installation

  1. In n8n, go to Settings > Community Nodes.
  2. Select Install.
  3. Enter @luka-cat-mimi/n8n-nodes-bcryptjs in the npm Package Name field.
  4. Agree to the risks, then select Install.

After installation, the Bcryptjs node will appear in the Cryptography category.

Manual Installation

To install the node locally, you can use npm package manager:

# For n8n self-hosted
npm install @luka-cat-mimi/n8n-nodes-bcryptjs

Operations

This node provides all bcryptjs async function capabilities:

Supported Operations

| Operation | Description | |-----------|-------------| | Compare Password | Asynchronously compare password with hash | | Generate Salt | Asynchronously generate salt value | | Get Rounds | Get the number of rounds used in the hash | | Get Salt | Extract salt portion from hash | | Hash Password | Asynchronously hash password | | Test Truncation | Test if password will be truncated (over 72 bytes) |

Parameter Descriptions

Generate Salt

  • Rounds: The cost of processing the data, default value is 10
  • Minor Version: The minor version of bcrypt, 'a' or 'b', default is 'b'

Hash Password

  • Password: The password to hash
  • Salt or Rounds: Salt value to use for hashing, or number specifying rounds

Compare Password

  • Password: The original password to compare
  • Hash: The hash value to compare against the password

Get Rounds

  • Hash: The hash value to extract rounds from

Get Salt

  • Hash: The hash value to extract salt from

Test Truncation

  • Password: The password to check

Options

  • Output Field Name: Field name where the result will be saved, default is 'result'

Usage Examples

Example 1: Password Hashing

Hash passwords when creating users:

  1. Set operation to Hash Password
  2. Enter the password to hash
  3. Set rounds (recommended 10-12)
  4. The node will return the hashed password

Input:

{
  "password": "mySecretPassword"
}

Output:

{
  "password": "mySecretPassword",
  "result": "$2b$10$N9qo8uLOickgx2ZMRZoMye..."
}

Example 2: Password Verification

Verify passwords during user login:

  1. Set operation to Compare Password
  2. Enter the original password and stored hash value
  3. The node will return true or false

Input:

{
  "password": "mySecretPassword",
  "hash": "$2b$10$N9qo8uLOickgx2ZMRZoMye..."
}

Output:

{
  "password": "mySecretPassword",
  "hash": "$2b$10$N9qo8uLOickgx2ZMRZoMye...",
  "result": true
}

Example 3: Custom Output Field

Set a custom output field name in options:

  1. Expand the Options section
  2. Set Output Field Name to hashedPassword
  3. The result will be saved to the specified field

Output:

{
  "password": "mySecretPassword",
  "hashedPassword": "$2b$10$N9qo8uLOickgx2ZMRZoMye..."
}

Security Considerations

  • bcrypt only uses the first 72 bytes of a password, any extra bytes are ignored
  • Recommend using async version to avoid blocking the event loop
  • Higher rounds mean better security but longer processing time
  • Default rounds of 10 is secure for most cases
  • Production environments should consider using 12 rounds or higher

Development

To develop or contribute to this project:

# Clone the repository
git clone https://github.com/luka-mimi/n8n-nodes-bcryptjs.git
cd n8n-nodes-bcryptjs

# Install dependencies
npm install

# Build the project
npm run build

# Run code quality checks
npm run lint

# Fix code formatting
npm run lintfix

Resources

License

MIT © luka-cat-mimi


If this project helps you, please give it a ⭐️!

Issue Reports: GitHub Issues

中文文档: README_CN.md