Turn any selected text into its cryptographic hash digest, right inside the editor. Select, run a command, and the selection is replaced with the hex digest — no copy-paste to an online tool.
Features
MD5 of Selection — 128-bit MD5 digest, useful for file checksums and legacy fingerprints.
SHA-1 of Selection — 160-bit SHA-1 digest, common in version control and older integrity checks.
SHA-256 of Selection — 256-bit SHA-2 digest, the modern default for integrity and signatures.
SHA-512 of Selection — 512-bit SHA-2 digest, for the longest fixed-length fingerprint.
All digests are computed from the UTF-8 bytes of the selected text using Node's built-in crypto module.
Usage
Select the text you want to hash. With nothing selected, Hashforge uses the word under the cursor.
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P).
Run one of: Hashforge: MD5 of Selection, Hashforge: SHA-1 of Selection, Hashforge: SHA-256 of Selection, or Hashforge: SHA-512 of Selection.
The selection is replaced with the hexadecimal digest.
Multiple cursors are supported — each selection is hashed independently in a single edit.
Settings
hashforge.uppercase (boolean, default false) — output the hex digest in uppercase when enabled.
A note on security
MD5 and SHA-1 are provided for checksums, fingerprints, and legacy compatibility. They are not collision-resistant and should not be used for security-sensitive purposes such as password storage or digital signatures. Prefer SHA-256 or SHA-512 where security matters.
License
Released under the MIT License. See the LICENSE file for details.