ihash/README.md
xiaoqidun c56c6c7e55
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is passing
feat(新增算法): 支撑sha384sum
2021-09-07 13:50:47 +08:00

47 lines
1.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ihash
命令行全平台支持通配符的hash校验工具
# 快速安装
go install github.com/xiaoqidun/ihash@latest
# 编译安装
```
git clone https://github.com/xiaoqidun/ihash.git
cd ihash
go build ihash.go
```
# 手动安装
1. 根据系统架构下载为你编译好的[二进制文件](https://aite.xyz/product/ihash/)
2. 将下载好的二进制文件重命名为ihash并保留后缀
3. 把ihash文件移动到系统PATH环境变量中的目录下
4. windows外的系统需使用chmod命令赋予可执行权限
# 校验类型
- md5sum
- sha1sum
- sha256sum
- sha384sum
- sha512sum
- sha3sum224
- sha3sum256
- sha3sum384
- sha3sum512
# 快捷命令
自行将./bin/替换成处于PATH环境变量中的目录路径
```
ihash -install ./bin/
```
# 字符校验
```
echo admin | md5sum
echo admin | ihash md5sum
```
# 文件校验
```
md5sum *
ihash md5sum *
```
# 传参说明
```
快捷命令 文件1 文件2 文件3 ...
原始程序 校验类型 文件1 文件2 文件3 ...
不传任何文件时从stdin命令行读取字符
```