first commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package lib
|
||||
|
||||
import (
|
||||
"crypto/md5"
|
||||
"encoding/hex"
|
||||
)
|
||||
|
||||
func GetFileMD5Hash(Data []byte) string {
|
||||
hash := md5.New()
|
||||
hash.Write(Data)
|
||||
retVal := hash.Sum(nil)
|
||||
return hex.EncodeToString(retVal)
|
||||
}
|
||||
Reference in New Issue
Block a user