mirror of
				https://github.com/aler9/gortsplib
				synced 2025-11-01 02:52:36 +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))
 | |
| }
 | 
