Did I really use the wrong algorithm?

This commit is contained in:
Regalijan 2023-10-23 20:44:18 -04:00
parent 320d33c5fa
commit 3d93824aef
Signed by untrusted user who does not match committer: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -34,7 +34,7 @@ export async function onRequestGet(context: RequestContext) {
Uint8Array.from(atob(context.env.URL_SIGNING_KEY), (c) =>
c.charCodeAt(0),
),
{ hash: "SHA-256", name: "HMAC" },
{ hash: "SHA-1", name: "HMAC" },
false,
["sign"],
);