mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-29 16:06:36 +08:00
12 lines
149 B
Go
12 lines
149 B
Go
package security
|
|
|
|
import (
|
|
"crypto/md5"
|
|
"fmt"
|
|
)
|
|
|
|
func MD5(input string) string {
|
|
hash := md5.Sum([]byte(input))
|
|
return fmt.Sprintf("%x", hash)
|
|
}
|