#hash #sha-256 #sha-1

app get-hash

Get hash of a string

2 stable releases

1.1.9 May 3, 2024
1.1.2 Apr 23, 2024
1.0.4 Apr 23, 2024

#196 in Math

Download history 8/week @ 2024-09-19 4/week @ 2024-09-26

261 downloads per month

MIT license

8KB
84 lines

Get hash

Description

This is a simple utility that calculates the hash of a string.

Install

cargo install get-hash

Usage sample

Get the hash of a string "Hello, World":

get-hash "Hello, World"

Output:

MD5: 82bb413746aee42f89dea2b59614f9ef
SHA1: 907d14fb3af2b0d4f18c2d46abe8aedce17367bd
SHA256: 03675ac53ff9cd1535ccc7dfcdfa2c458c5218371f418dc136f2d19ac1fbe8a5
SHA512: 45546d4d71407e82ecda31eba5bf74b65bc092b0436a2409a6b615c1f78fdb2d3da371758f07a65b5d2b3ee8fa9ea0c772dd1eff884c4c77d4290177b002ccdc

Dependencies

Dev scripts

# Build.
./build.sh

# Install locally.
./install.sh

# Release new version.
./release.sh (major|minor|patch)

Dependencies

~515KB
~12K SLoC