From 8d0f518e40d78ffc900b48047ce83e568f11bac7 Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Fri, 31 Jul 2020 15:24:22 +0800 Subject: [PATCH] =?UTF-8?q?docs(=E4=BD=BF=E7=94=A8=E6=96=87=E6=A1=A3):=20?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AF=B4=E6=98=8E=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index 5849a35..433a154 100644 --- a/README.md +++ b/README.md @@ -7,4 +7,38 @@ go get -u github.com/xiaoqidun/ihash git clone https://github.com/xiaoqidun/ihash.git cd ihash go build ihash.go +``` +# 校验类型 +- md5sum +- sha1sum +- sha256sum +- sha512sum +- sha3sum224 +- sha3sum256 +- sha3sum384 +- sha3sum512 +# 快捷命令 +## linux +``` +ihash -install ./bin/ +``` +## windows +``` +ihash -install .\bin\ +``` +# 字符校验 +``` +echo admin | md5sum +echo admin | ihash md5sum +``` +# 文件校验 +``` +md5sum * +ihash md5sum * +``` +# 传参说明 +``` +快捷命令 文件1 文件2 文件3 ... +原始程序 校验类型 文件1 文件2 文件3 ... +不传任何文件时从stdin(命令行)读取字符 ``` \ No newline at end of file