GithubHelp home page GithubHelp logo

thebluesky / dotnet-hash Goto Github PK

View Code? Open in Web Editor NEW
27.0 2.0 6.0 18 KB

A simple dotnet tool to calculate hashes

License: MIT License

Batchfile 10.17% C# 89.83%
hash algorithm hash-algorithm md5 sha1 sha2 sha256 sha384 sha512 base64 hex dotnet dotnet-tool

dotnet-hash's Introduction

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

dotnet-hash's People

Contributors

jongalloway avatar thebluesky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.