Bcryptjs icon

Bcryptjs

Perform password hashing and verification using bcryptjs

Get Salt

AI-generated

Summary

Extract the salt portion from a given bcrypt hash string.

Inputs

  • Hash (required) — The bcrypt hash value containing the salt to extract.
  • Options — Optional settings such as 'Output Field Name' to specify the JSON field name where the extracted salt will be saved (default is 'result').

Output shape

a list of items with the extracted salt string added to each item's JSON, under the specified output field name.

Each input item produces an output item with the extracted salt in the specified output field. If the 'Output Field Name' option is not provided, the salt is saved under the 'result' field by default. Throws an error if extraction fails.

Examples

Example 1: Extracting salt from a bcrypt hash

Set the Operation to 'Get Salt', provide the bcrypt hash in the 'Hash' parameter, optionally set the output field name in options, then execute the node to output the salt value.

Links

Discussion