Hash
AI-generatedSummary
Hash a plain text string using the bcrypt algorithm, generating a secure hash for storage.
Inputs
- Plain Text (required) — The text string to be hashed.
- Salt Rounds — The number of salt rounds to use for hashing. A higher number increases the computational cost and security. Defaults to 10.
Output shape
Returns a single JSON object containing the generated bcrypt hash.
The output object will have a single key,
hash, whose value is the bcrypt hashed string.
Examples
Example 1: Store a user's password securely after they register.
Set 'Plain Text' to the user-provided password (e.g., 'mySecretPassword123') and 'Salt Rounds' to 12.
Example 2: Hash an API key before storing it in a database.
Set 'Plain Text' to the API key string and use the default 'Salt Rounds' of 10.