Skip to content

alexguirre/vscode-inline-hasher

Repository files navigation

Inline Hasher

An extension that allows you to insert hashes of the selected text.

Usage

Commands

The following commands are available:

  • Replace selection with single hash...: allows you to select a hash function and replace every selection with a specified format. %1 is replaced with the original string and %2 is replaced with the hash.
  • Replace selection with multiple hashes...: allows you to replace every selection with a specified format that can include multiple hash functions. %1 is replaced with the original string and %<hash-function>[_^] is replaced the with hash from the function specified by hash-function (see below for available hash functions), and if either suffix, _ or ^, is specified, the string will be converted to lowercase or uppercase respectively before calculating the hash.

Hash Functions

The following hash functions are available:

Name Function
Jenkins one-at-a-time joaat
ELF elf
FNV-1a fnv1a
FNV-1 fnv1
SHA-1 sha1
SHA-224 sha224
SHA-256 sha256
SHA-384 sha384
SHA-512 sha512
MD5 md5

Credits