mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 07:37:07 +08:00
move subfolders in pkg/
This commit is contained in:
12
pkg/auth/utils.go
Normal file
12
pkg/auth/utils.go
Normal file
@@ -0,0 +1,12 @@
|
||||
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))
|
||||
}
|
Reference in New Issue
Block a user