Command line syntax - aegoroff/hc GitHub Wiki

hc [-blh] <algorithm> <command> -s <string>

  <algorithm>               hash algorithm. See all possible values below
  <command>                 must be string
  -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 [-bplh] <algorithm> <command> [-s <string>] [-a <string>] [-n <int>] [-x <int>] [--noprobe] [-T <int>]

  <algorithm>               hash algorithm. See all possible values below
  <command>                 must be hash
  -s, --source=<string>     hash to restore initial string by
  -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
  -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.
  -l, --lower               output hash using low case (false by default)
  -h, --help                print this help and exit



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

  <algorithm>               hash algorithm. See all possible values below
  <command>                 must be file
  -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> <command> -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
  <command>                 must be dir
  -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:
    blake2b
    blake2s
    blake3
    crc32
    crc32c
    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
    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
    snefru128
    snefru256
    tiger
    tiger2
    tth
    whirlpool
⚠️ **GitHub.com Fallback** ⚠️