Plug Database icon

Plug Database

Run Plug Database commands over REST or Socket.

Tools → Generate Hash

AI-generated

Summary

Generate a cryptographic hash of a provided text string using a specified algorithm and store the resulting hash under a defined JSON property in the node's output.

Inputs

  • Tool Category — Select the category of tools to display; for this operation, it defaults to 'Security' but is usually preset.
  • Text (required) — Input text string to be hashed.
  • Algorithm (required) — Specify the hashing algorithm to use (default is 'sha256').
  • Output JSON Property — Customize the name of the JSON property in which to store the generated hash; defaults to 'hash'.

Output shape

a single JSON object per input item

The output JSON object contains a property (default 'hash' or as specified) holding the cryptographic hash string. If multiple input items are processed, each item yields one JSON object with the hash property.

Examples

Example 1: Hash a plaintext string using SHA-256

Set 'Text' to the string to hash, use default 'Algorithm' ('sha256'), and optionally change the 'Output JSON Property' name. The node outputs the SHA-256 hash string under the specified property.

Links

Discussion