// signature returns the signature for a given message as base64 encoded
// byte sequence.
signature returns the signature for a given message as base64 encoded
byte sequence.
// signature returns the signature for a given message as base64 encoded // byte sequence .
func signature(message, secret string) string {
	h := hmac.New(sha256.New, []byte(secret))
	h.Write([]byte(message))
	return base64Encode(h.Sum(nil))
}
func signature ( message , secret string ) string { h := hmac . New ( sha256 . New , [ ] byte ( secret ) ) h . Write ( [ ] byte ( message ) ) return base64Encode ( h . Sum ( nil ) ) }
signature returns the signature for a given message as base64 encoded
byte sequence.
signature returns the signature for a given message as base64 encoded byte sequence .