Strip fingerprint SHA headder for clearer display
This commit is contained in:
parent
1186ade6a7
commit
71add5ffec
@ -13,3 +13,4 @@ Warrant canary available at /etc/ttyserver/canary
|
|||||||
* [ ] Web Notifications for user activity
|
* [ ] Web Notifications for user activity
|
||||||
* [ ] Web UI to opt into [Gemini Web Proxy](https://git.corrupt.link/maddiefuzz/skeksis)
|
* [ ] Web UI to opt into [Gemini Web Proxy](https://git.corrupt.link/maddiefuzz/skeksis)
|
||||||
* [ ] Canary description popup?
|
* [ ] Canary description popup?
|
||||||
|
* [ ] Shift-Click for Keygen Options
|
||||||
|
6
index.js
6
index.js
@ -151,7 +151,7 @@ const generateSSH = async (name, id, token) => {
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
generateKeyPair("RSASSA-PKCS1-v1_5", 4096, "namehere")
|
generateKeyPair("RSASSA-PKCS1-v1_5", 4096, "WebGen " + Date())
|
||||||
.then((keys) => {
|
.then((keys) => {
|
||||||
var KeyExport = new JSZip();
|
var KeyExport = new JSZip();
|
||||||
name = replaceInvalid(name);
|
name = replaceInvalid(name);
|
||||||
@ -233,11 +233,11 @@ const displayFingerprints = () => {
|
|||||||
$.get(USE_ORIGIN+"/fingerprint.php", (response) => {
|
$.get(USE_ORIGIN+"/fingerprint.php", (response) => {
|
||||||
dbp(response);
|
dbp(response);
|
||||||
if (response) {
|
if (response) {
|
||||||
var html = "<div><table class=\"fingerprintTable\"><tr><th>Bits</th><th>Fingerprint</th><th class=\"text-start\">Algorithm</th></tr>";
|
var html = "<div><table class=\"fingerprintTable\"><tr><th>Bits</th><th>Fingerprint (SHA256)</th><th class=\"text-start\">Algorithm</th></tr>";
|
||||||
response.split("\n").forEach((line) => {
|
response.split("\n").forEach((line) => {
|
||||||
var parts = line.split(" ");
|
var parts = line.split(" ");
|
||||||
if(parts.length === 4){
|
if(parts.length === 4){
|
||||||
html += "<tr><td class=\"fingerprintBit\">"+parts[0]+"</td><td class=\"fingerprintData\">"+parts[1]+"</td><td class=\"fingerprintAlgo\">"+parts[3].replace("(", "").replace(")", "")+"</td></tr>";
|
html += "<tr><td class=\"fingerprintBit\">"+parts[0]+"</td><td class=\"fingerprintData\">"+parts[1].replace("SHA256:", "")+"</td><td class=\"fingerprintAlgo\">"+parts[3].replace("(", "").replace(")", "")+"</td></tr>";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
html += "</table></div>";
|
html += "</table></div>";
|
||||||
|
Loading…
Reference in New Issue
Block a user