Developers · Gutenberg

Hash Generator block for WordPress

Generate MD5, SHA-1, SHA-256 and SHA-512 cryptographic hashes from any text input. Useful for developers, security professionals and data integrity checks.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

Generate MD5, SHA-1, SHA-256 and SHA-512 cryptographic hashes from any text input. Useful for developers, security professionals and data integrity checks.

Inspector panels on this block: Generator Settings, Visible Algorithms, Sizing. Those titles come from index.js, not from a shared template.

Where to find it

Gutenberg inserter → Developers → search “Hash Generator” (block name `blockenberg/hash-generator` in block.json). Style it in the sidebar after insert.

How to use Hash Generator block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Hash Generator”, insert it. Category: Developers.
  3. Configure inspector controls that exist on this block. Open Generator Settings. Set “Default Algorithm”, “Placeholder Input Text”, “Auto-hash on type”, “Show MD5”.
  4. Check the published page. The view script reads HTML data attributes: data-algo, data-opts. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Default AlgorithmSelect control; the chosen value is saved on the block. block.json default: SHA-256. Saved as `defaultAlgorithm`.
Placeholder Input TextText field in the inspector. Saved as `defaultInput`.
Auto-hash on typeOn/off toggle in the inspector. On by default. Saved as `autoHash`.
Show MD5On/off toggle in the inspector. On by default. Saved as `showMD5`.
Show SHA-1On/off toggle in the inspector. On by default. Saved as `showSHA1`.
Show SHA-256On/off toggle in the inspector. On by default. Saved as `showSHA256`.
Show SHA-512On/off toggle in the inspector. Off by default. Saved as `showSHA512`.
Show Compare / Verify fieldOn/off toggle in the inspector. On by default. Saved as `showCompare`.
Max Width (px)Numeric range control in the inspector. Range 400–1100. block.json default: 700. Saved as `contentMaxWidth`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Hash Generator block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Hash Generator”. It sits under Developers. After insert, open Generator Settings and set “Default Algorithm”, “Placeholder Input Text”, “Auto-hash on type”, “Show MD5”.

Does Hash Generator need a server or extra plugin?

No. After Blockenberg is active, the view script runs in the browser with the values you saved on the block.

Is the Hash Generator Gutenberg block free?

Yes. Hash Generator ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Hash Generator to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Generator Settings, Visible Algorithms, Sizing).

Related developers blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Hash Generator from the Gutenberg inserter.

Get Blockenberg