TheBlueSky.DotNet.Tools.SwiftHash 1.0.0

A simple dotnet tool to calculate hashes of the given file

dotnet tool install --global TheBlueSky.DotNet.Tools.SwiftHash --version 1.0.0
This package contains a .NET Core Global Tool you can call from the shell/command line.

Installation

To install the tool you need to install .NET Core 2.1 SDK v2.1.300 or newer. Once installed, run this command:

dotnet tool install TheBlueSky.DotNet.Tools.SwiftHash --global

Usage

Usage: dotnet hash [arguments] [options]

Arguments:
  path                        Path to the file to calculate the hash for

Options:
  -?|-h|--help                Show help information
  -a|--algorithm <ALGORITHM>  The hashing algorithm
  -o|--out <OUTPUT>           The output format

The tool calculates MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes
for any file and outputs the result as Base64 or Hex string.
The bigger the file is, the longer it takes to calculate the hash.

For example:

dotnet hash readme.md --algorithm sha1 --out hex

Valid values:

  • algorithm: md5, sha1, sha256, sha384, and sha512
  • out: base64 and hex.

Installation

To install the tool you need to install .NET Core 2.1 SDK v2.1.300 or newer. Once installed, run this command:

dotnet tool install TheBlueSky.DotNet.Tools.SwiftHash --global

Usage

Usage: dotnet hash [arguments] [options]

Arguments:
  path                        Path to the file to calculate the hash for

Options:
  -?|-h|--help                Show help information
  -a|--algorithm <ALGORITHM>  The hashing algorithm
  -o|--out <OUTPUT>           The output format

The tool calculates MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes
for any file and outputs the result as Base64 or Hex string.
The bigger the file is, the longer it takes to calculate the hash.

For example:

dotnet hash readme.md --algorithm sha1 --out hex

Valid values:

  • algorithm: md5, sha1, sha256, sha384, and sha512
  • out: base64 and hex.

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
1.0.0 259 8/25/2018