https://github.com/kulichkoff/hasha
simple command-line tool for generating hashes from input file or string
https://github.com/kulichkoff/hasha
go golang hash sha sha256
Last synced: 11 months ago
JSON representation
simple command-line tool for generating hashes from input file or string
- Host: GitHub
- URL: https://github.com/kulichkoff/hasha
- Owner: kulichkoff
- License: mit
- Created: 2024-10-24T19:23:58.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-29T14:48:23.000Z (over 1 year ago)
- Last Synced: 2025-04-01T13:17:34.922Z (about 1 year ago)
- Topics: go, golang, hash, sha, sha256
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hasha
`hasha` is a simple command-line tool for generating hashes from input
data. This tool is useful for verifying data integrity and creating
secure checksums.
## Table of Contents
- [hasha](#hasha)
- [Table of Contents](#table-of-contents)
- [Installation](#installation)
- [Usage](#usage)
- [Contribute](#contribute)
## Installation
To install `hasha`, you can check "releases" page. Here you should download
a version for your platform.
## Usage
You can generate hash using different algorithms. Now the tool supports
SHA256 and MD5. SHA256 algorithm is used by dafault.
To calculate hash for the string just run:
```sh
hasha "some string"
```
or
```sh
hasha -a md5 "some string"
```
ALso, you can calculate hash for the file! You can specify hash algorithm
if necessary.
```sh
hasha path/to/file
```
Or use unix pipes:
```sh
cat file | hasha -a sha256
cat file | hasha
cat file | hasha -a md5
```
You can also use `hasha` output to save in a file:
```sh
hasha path/to/file > chksum_sha256
hasha -a md5 path/to/file > chksum_md5
```
## Contribute
Unfortunately, `hasha` is not ready for community contribution now.
You can make a feature request or bug report on "Issues" page.