We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When there are special characters in the payload For example ä, ü, ö, 任务
ä
ü
ö
任务
I got the “wrong” signature following the X-Todoist-Hmac-SHA256 doc in the Request Header section of the sync doc.
X-Todoist-Hmac-SHA256
example code
const c = require("node:crypto"); const hash = c.createHmac("sha256", secret).update(buf).digest("base64");
(def payload (slurp body :encoding "UTF-8")) ;; body is jetty HttpInputStream http://www.servlets.com/javadoc/org/mortbay/http/HttpInputStream.html (defn hmac-sha256-b64 [secret payload] (-> payload buddy.codecs/str->bytes (buddy.mac/hash {:key secret :alg :hmac+sha256}) buddy.codecs/bytes->b64-str))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Question description
When there are special characters in the payload
For example
ä
,ü
,ö
,任务
I got the “wrong” signature following the
X-Todoist-Hmac-SHA256
doc in the Request Header section of the sync doc.example code
X-Todoist-Hmac-SHA256
when there's no special characterThe text was updated successfully, but these errors were encountered: