Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Add Golang example #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

SevereCloud
Copy link

valid_test.go полностью покрывающий isValid

@dvmazur
Copy link

dvmazur commented Apr 11, 2020

The function is not working correctly. You forgot to encode the URL before feeding it to HMAC. I suggest you change the _, _ = mac.Write([]byte(strings.Join(vkParams, "&"))) line to _, _ = mac.Write([]byte(url.PathEscape(strings.Join(vkParams, "&")))).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants