mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 23:02:45 +08:00
13 lines
166 B
Go
13 lines
166 B
Go
package auth
|
|
|
|
import (
|
|
"crypto/md5"
|
|
"encoding/hex"
|
|
)
|
|
|
|
func md5Hex(in string) string {
|
|
h := md5.New()
|
|
h.Write([]byte(in))
|
|
return hex.EncodeToString(h.Sum(nil))
|
|
}
|