12 lines
175 B
Go
12 lines
175 B
Go
package sqlstash
|
|
|
|
import (
|
|
"crypto/md5"
|
|
"encoding/hex"
|
|
)
|
|
|
|
func createContentsHash(contents []byte) string {
|
|
hash := md5.Sum(contents)
|
|
return hex.EncodeToString(hash[:])
|
|
}
|