Bcryptjs icon

Bcryptjs

Perform password hashing and verification using bcryptjs

Get Rounds

AI-generated

Summary

Extract the number of salt rounds (cost factor) used in a given bcrypt hash value.

Inputs

  • Hash (required) — The bcrypt hash string from which to extract the cost factor.
  • Options — Optional parameters to customize the node output, including the 'Output Field Name' to specify the JSON property name for the result.

Output shape

a list of JSON items, each with an added field containing the number of rounds.

The output field name defaults to 'result' but can be customized via the Options parameter. Errors are thrown if the hash parameter is invalid or missing.

Links

Discussion