We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54fc8f1 commit 5d0bb9dCopy full SHA for 5d0bb9d
get_webhook.mjs
@@ -0,0 +1,16 @@
1
+import process from "process";
2
+
3
+const sha256 = async (text) =>
4
+ crypto.subtle
5
+ .digest("SHA-256", new TextEncoder().encode(text))
6
+ .then((array_buffer) =>
7
+ Array.from(new Uint8Array(array_buffer))
8
+ .map((b) => b.toString(16).padStart(2, "0"))
9
+ .join("")
10
+ );
11
12
+const base_url = process.argv[2];
13
+const token = process.argv[3];
14
+const path = await sha256(token);
15
16
+console.log(base_url + path);
0 commit comments