TheBlueSky.DotNet.Tools.SwiftHash 2.1.0

dotnet tool install --global TheBlueSky.DotNet.Tools.SwiftHash --version 2.1.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 2.1.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=TheBlueSky.DotNet.Tools.SwiftHash&version=2.1.0                
nuke :add-package TheBlueSky.DotNet.Tools.SwiftHash --version 2.1.0                

dotnet-hash

Build NuGet NuGet

A simple dotnet tool to calculate hashes for the given file.

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.

Installation

To install the tool you need to install .NET 6.0 SDK, .NET 7.0 SDK, or .NET 8.0 SDK. 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 sha256 --out hex

Valid algorithm:

  • md5
  • sha1
  • sha256
  • sha384
  • sha512

Valid out:

  • base64
  • hex
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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 is compatible.  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 is compatible.  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. 
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 329 11/19/2023
2.0.2 238 9/16/2023
2.0.1 221 9/16/2023
2.0.0 203 9/16/2023
1.0.1 2,005 7/28/2019
1.0.0 1,082 8/25/2018