Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
crgimenes committed May 15, 2023
1 parent 3279432 commit 7f74344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webhook_signature.org
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ def validate_signature(plaintext, key, signature):
return signature == expected_signature
#+end_src

Golang Example:
#+begin_src golang
import (
"encoding/base64"
"crypto/sha256"
)

Golang Example:
func validateSignature(plaintext []byte, key string, signature string) bool {
content := key + string(plaintext)
bcontent := []byte(content)
Expand Down

0 comments on commit 7f74344

Please sign in to comment.