Advertisement
Guest User

Untitled

a guest
Jun 9th, 2020
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.24 KB | None | 0 0
  1. (defun makesig (key secret)
  2.   (let ((k (ascii-string-to-byte-array key))
  3.         (s (ascii-string-to-byte-array secret)))
  4.     (let ((hmac (make-hmac k :sha256)))
  5.       (update-hmac hmac s)
  6.       (byte-array-to-hex-string (hmac-digest hmac)))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement