Command line syntax - aegoroff/hc GitHub Wiki

The command line is hc <algorithm> <mode> [options]. Algorithm names are case-insensitive.

hc -h
hc sha1 -h
hc sha1 file -h
hc [-blh] <algorithm> string -s <string>

  <algorithm>               hash algorithm. See all possible values below
  -s, --source=<string>     string to calculate hash sum for
  -b, --base64              output hash as Base64
  -l, --lower               output hash using low case (false by default)
  -h, --help                print this help and exit



hc [-bph] <algorithm> hash [-s <string>] [-a <string>] [-n <int>] [-x <int>] [--noprobe] [-T <int>]

  <algorithm>               hash algorithm. See all possible values below
  -s, --source=<string>     hash to restore initial string by. Required unless -p is specified
  -b, --base64              interpret hash as Base64
  -a, --dict=<string>       initial string's dictionary. All digits, upper and
                            lower case latin symbols by default. Specify value
                            ASCII here to use all ASCII charset as dictionary.
                            Short forms: 0-9, a-z, A-Z
  -n, --min=<int>           set minimum length of the string to restore. 1 by
                            default
  -x, --max=<int>           set maximum length of the string to restore. 10 by
                            default
  -p, --performance         test performance by cracking 12345 string hash
      --noprobe             Disable hash crack time probing (how much time it
                            may take)
  -T, --threads=<int>       the number of threads to crack hash. The half of
                            system processors by default. The value must be
                            between 1 and processor count. GPU restore uses 1
                            thread
  -h, --help                print this help and exit



hc [-ctlbh] <algorithm> file -s <file> [-m <string>] [-z <number>] [-q <number>] [-o <file>] [--sfv]

  <algorithm>               hash algorithm. See all possible values below
  -s, --source=<file>       full path to file to calculate hash sum of
  -m, --hash=<string>       hash to validate file
  -z, --limit=<number>      set the limit in bytes of the part of the file to
                            calculate hash for. The whole file by default will
                            be applied
  -q, --offset=<number>     set start position within file to calculate hash
                            from. Zero by default
  -c, --checksumfile        output hash in file checksum format
  -o, --save=<file>         save files' hashes into the file specified besides
                            console output.
  -t, --time                show calculation time (false by default)
      --sfv                 output hash in the SFV (Simple File Verification)
                            format (false by default). Only for CRC32 or CRC32C.
  -l, --lower               output hash using low case (false by default)
  -b, --base64              output hash as Base64
  -h, --help                print this help and exit



hc [-rctlbh] <algorithm> dir -s <string> [-m <string>] [-e <string>] [-i <string>] [-z <number>] [-q <number>] [-H <string>] [-o <file>] [--sfv] [--noerroronfind]

  <algorithm>               hash algorithm. See all possible values below
  -s, --source=<string>     full path to dir to calculate all content's hashes
  -m, --hash=<string>       hash to validate files in directory
  -e, --exclude=<string>    exclude files that match the pattern specified. It's
                            possible to use several patterns separated by ;
  -i, --include=<string>    include only files that match the pattern specified.
                            It's possible to use several patterns separated by ;
  -z, --limit=<number>      set the limit in bytes of the part of the file to
                            calculate hash for. The whole file by default will
                            be applied
  -q, --offset=<number>     set start position within file to calculate hash
                            from. Zero by default
  -H, --search=<string>     hash to search a file that matches it
  -r, --recursively         scan directory recursively
  -c, --checksumfile        output hash in file checksum format
  -o, --save=<file>         save files' hashes into the file specified besides
                            console output.
  -t, --time                show calculation time (false by default)
      --sfv                 output hash in the SFV (Simple File Verification)
                            format (false by default). Only for CRC32 or CRC32C.
  -l, --lower               output hash using low case (false by default)
  -b, --base64              output hash as Base64
      --noerroronfind       Disable error output while search files. False by
                            default.
  -h, --help                print this help and exit



  Supported hash algorithms:
    adler32
    blake2b
    blake2b-128
    blake2b-160
    blake2b-224
    blake2b-256
    blake2b-384
    blake2s
    blake2s-128
    blake2s-160
    blake2s-224
    blake3
    crc32
    crc32c
    crc64-ecma
    crc64-iso
    crc64-ms
    crc64-xz
    edonr256
    edonr512
    gost
    haval-128-3
    haval-128-4
    haval-128-5
    haval-160-3
    haval-160-4
    haval-160-5
    haval-192-3
    haval-192-4
    haval-192-5
    haval-224-3
    haval-224-4
    haval-224-5
    haval-256-3
    haval-256-4
    haval-256-5
    md2
    md4
    md5
    murmur3-128
    murmur3-32
    ntlm
    ripemd128
    ripemd160
    ripemd256
    ripemd320
    sha-3-224
    sha-3-256
    sha-3-384
    sha-3-512
    sha-3k-224
    sha-3k-256
    sha-3k-384
    sha-3k-512
    sha1
    sha224
    sha256
    sha384
    sha512
    sha512-224
    sha512-256
    shake128
    shake256
    sm3
    snefru128
    snefru256
    streebog256
    streebog512
    tiger
    tiger2
    tth
    whirlpool
    xxhash3
    xxhash32
    xxhash64

crc32c is available only on x86, x86_64, and aarch64.

l2h

l2h [-q <query> | -f <file>] [-n]

  -q, --query=<query>       query text from the command line
  -f, --file=<file>         query from a file
  -n, --syntax-check        parse and type-check query without executing
  -h, --help                print this help and exit

If you omit -q and -f, the query is read from standard input. If both are given, -q is used.

See l2h.

⚠️ **GitHub.com Fallback** ⚠️