// signRedirectURL takes a redirect url string and timestamp and returns the base64
// encoded HMAC result.
signRedirectURL takes a redirect url string and timestamp and returns the base64
encoded HMAC result.
// signRedirectURL takes a redirect url string and timestamp and returns the base64 // encoded HMAC result .
func (p *Proxy) signRedirectURL(rawRedirect string, timestamp time.Time) string {
	data := []byte(fmt.Sprint(rawRedirect, timestamp.Unix()))
	h := cryptutil.Hash(p.SharedKey, data)
	return base64.URLEncoding.EncodeToString(h)
}
func ( p * Proxy ) signRedirectURL ( rawRedirect string , timestamp time . Time ) string { data := [ ] byte ( fmt . Sprint ( rawRedirect , timestamp . Unix ( ) ) ) h := cryptutil . Hash ( p . SharedKey , data ) return base64 . URLEncoding . EncodeToString ( h ) }
signRedirectURL takes a redirect url string and timestamp and returns the base64
encoded HMAC result.
signRedirectURL takes a redirect url string and timestamp and returns the base64 encoded HMAC result .