Apply conversion script to all *.md files. authored by Alexander Hansen Færøy's avatar Alexander Hansen Færøy
...@@ -5,7 +5,7 @@ Paste the following code snippet in the Firefox (or Tor Browser) web console to ...@@ -5,7 +5,7 @@ Paste the following code snippet in the Firefox (or Tor Browser) web console to
1. Start Firefox (or Tor Browser) and open the web console. 1. Start Firefox (or Tor Browser) and open the web console.
1. Paste the following code: 1. Paste the following code:
{{{ ```
crypto.subtle.generateKey({ name: "ECDSA", namedCurve: "P-256" }, true, ["sign"]) crypto.subtle.generateKey({ name: "ECDSA", namedCurve: "P-256" }, true, ["sign"])
.then((kp) => { .then((kp) => {
let padStart = (s, l, c) => Array(l - s.length + 1).join(c || " ") + s; let padStart = (s, l, c) => Array(l - s.length + 1).join(c || " ") + s;
...@@ -30,15 +30,15 @@ crypto.subtle.generateKey({ name: "ECDSA", namedCurve: "P-256" }, true, ["sign"] ...@@ -30,15 +30,15 @@ crypto.subtle.generateKey({ name: "ECDSA", namedCurve: "P-256" }, true, ["sign"]
console.log("/msg nickserv set property pubkey", btoa(s)); console.log("/msg nickserv set property pubkey", btoa(s));
}); });
}); });
}}} ```
You should see output like this: You should see output like this:
{{{ ```
Promise { <state>: "pending" } Promise { <state>: "pending" }
<priv-key> <priv-key>
/msg nickserv set property pubkey <pub-key> /msg nickserv set property pubkey <pub-key>
}}} ```
Copy the command starting with `/msg nickserv` and run it on the server. Copy the command starting with `/msg nickserv` and run it on the server.
... ...
......