TheBlueSky.DotNet.Tools.SwiftHash 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global TheBlueSky.DotNet.Tools.SwiftHash --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local TheBlueSky.DotNet.Tools.SwiftHash --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=TheBlueSky.DotNet.Tools.SwiftHash&version=1.0.0
nuke :add-package TheBlueSky.DotNet.Tools.SwiftHash --version 1.0.0

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.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
2.1.0 270 11/19/2023
2.0.2 205 9/16/2023
2.0.1 193 9/16/2023
2.0.0 173 9/16/2023
1.0.1 1,973 7/28/2019
1.0.0 1,052 8/25/2018