dm/cs
1
0
forked from sm/cs

added md5

This commit is contained in:
Stephen McQuay 2016-01-03 20:15:32 -08:00
parent 54ae8e472e
commit e59d499036
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package main
import (
"crypto/md5"
"crypto/sha1"
"crypto/sha256"
"crypto/sha512"
@ -23,6 +24,8 @@ func main() {
h = sha256.New()
case "sha512", "512":
h = sha512.New()
case "md5":
h = md5.New()
default:
fmt.Fprintf(os.Stderr, "unsupported algorithm: %v\n", *algo)
os.Exit(1)

View File

@ -2,7 +2,7 @@
calculate checksums
It's a simpler version of shasum + md5sum, but only for sha1, sha256, and
It's a simpler version of shasum + md5sum, but only for md5, sha1, sha256, and
sha512.
## usage