GithubHelp home page GithubHelp logo

samuel-lucas6 / milva Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 1.0 188 KB

A simple, cross-platform command line tool for hashing files and text.

Home Page: https://samuellucas.com/Milva

License: GNU General Public License v3.0

C# 100.00%
hashing cli blake2 blake2b sha2 sha512 sha256 sha384 sha1 md5

milva's Introduction

License: GPL v3

Milva

A simple, cross-platform command line tool for hashing files and text.

milva

Usage

Usage: milva [options] <inputs>

Arguments:
  inputs         specify files/directories or text

Options:
  --blake3       use BLAKE3-256
  --shake256     use SHAKE256
  --shake128     use SHAKE128
  --sha3-512     use SHA3-512
  --sha3-384     use SHA3-384
  --sha3-256     use SHA3-256
  --blake2b-512  use BLAKE2b-512
  --blake2b-384  use BLAKE2b-384
  --blake2b-256  use BLAKE2b-256
  --blake2b-160  use BLAKE2b-160
  --blake2s-256  use BLAKE2s-256
  --blake2s-224  use BLAKE2s-224
  --blake2s-160  use BLAKE2s-160
  --blake2s-128  use BLAKE2s-128
  --sha512       use SHA-512
  --sha384       use SHA-384
  --sha256       use SHA-256
  --whirlpool    use Whirlpool
  --ripemd-320   use RIPEMD-320
  --ripemd-256   use RIPEMD-256
  --ripemd-160   use RIPEMD-160
  --ripemd-128   use RIPEMD-128
  --sha1         use SHA-1
  --md5          use MD5
  -t|--text      specify text instead of files/directories
  -a|--about     view the program version and license
  -h|--help      show help information

Examples:
  --sha256 [file]
  --sha256 [directory]
  --sha256 --text [text]

When specifying file names/paths or text containing spaces, you must surround them with "speech marks":

$ milva --sha256 "GitHub Logo.png"
$ milva --sha256 "C:\Users\samuel-lucas6\Pictures\GitHub Logo.png"

Running Milva

On Windows via the Command Prompt:

$ cd "[download path]"
$ milva -h

On Linux and macOS via the terminal:

$ cd "[download path]"
$ chmod +x milva
$ ./milva -h

milva's People

Contributors

dependabot[bot] avatar samuel-lucas6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

bluepositive

milva's Issues

Hashing Text

Does it make sense to add the functionality to hash text?

I think it can be added fairly easily by adding a t/text bool flag (with false as the default) and passing it to the HashEachFile method and changing the GetHash method to accept a Stream instead of a FileStream and then in the HashEachFile method if the Text flag is true in the forEach loop we can convert the text to a Stream.

If you think it makes sense I can work on it.

Blake3 incorrect implementation?

Windows 7, Milva 1.1.0, b3sum 0.3.7, hashsum 1.0

$ milva.exe --blake3 milva.exe
milva.exe: af1349b9f5f9a1a6a0404dea36dcc9499bcb25c9adc112b7cc9a93cae41f3262

$ b3sum.exe milva.exe
21bc827a71ac67d907aa51e0ae4d3f26e3448a40c5aaed5df298cc75d1cdd55a  milva.exe

$ hashsum_win64.exe -v -t b3 milva.exe                 
21bc827a71ac67d907aa51e0ae4d3f26e3448a40c5aaed5df298cc75d1cdd55a milva.exe 

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.