Strip fingerprint SHA headder for clearer display

This commit is contained in:
Elizabeth Cray 2023-09-29 14:40:40 +00:00
parent 1186ade6a7
commit 71add5ffec
2 changed files with 4 additions and 3 deletions

View File

@ -13,3 +13,4 @@ Warrant canary available at /etc/ttyserver/canary
* [ ] Web Notifications for user activity
* [ ] Web UI to opt into [Gemini Web Proxy](https://git.corrupt.link/maddiefuzz/skeksis)
* [ ] Canary description popup?
* [ ] Shift-Click for Keygen Options

View File

@ -151,7 +151,7 @@ const generateSSH = async (name, id, token) => {
});
return;
}
generateKeyPair("RSASSA-PKCS1-v1_5", 4096, "namehere")
generateKeyPair("RSASSA-PKCS1-v1_5", 4096, "WebGen " + Date())
.then((keys) => {
var KeyExport = new JSZip();
name = replaceInvalid(name);
@ -233,11 +233,11 @@ const displayFingerprints = () => {
$.get(USE_ORIGIN+"/fingerprint.php", (response) => {
dbp(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) => {
var parts = line.split(" ");
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>";