Use SHA1 for better performance

This commit is contained in:
Jan Bader 2020-11-22 01:22:52 +01:00
parent ff2d4daeda
commit 29fa093184

View File

@ -1,7 +1,7 @@
package main
import (
"crypto/sha256"
"crypto/sha1"
"encoding/base64"
"io"
"os"
@ -48,7 +48,7 @@ func calculateHash(path string) (string, error) {
}
defer f.Close()
h := sha256.New()
h := sha1.New()
if _, err := io.Copy(h, f); err != nil {
return "", err
}