package engine import ( "crypto/hmac" "crypto/rand" "crypto/sha256" "crypto/subtle" "encoding/hex" "strconv" "strings" "time" ) // Stream authentication. // // /stream and /hls have no header-based auth: a