Commit 0ccbfcbe authored by Arnaud Delcasse's avatar Arnaud Delcasse

Start implementing signature

parent b0f4dfe9
......@@ -11,7 +11,7 @@ type RDEXOperator struct {
PublicKey string
func (o *RDEXOperator) RDEXOperator(url string) string {
func (o *RDEXOperator) Signature(url string) string {
mac := hmac.New(sha256.New, []byte(o.PrivateKey))
return string(mac.Sum(nil))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment