From 5b6bdefbec79245a93d38ea423738322580e73b7 Mon Sep 17 00:00:00 2001 From: grant-kun Date: Tue, 4 Oct 2022 09:00:27 -0500 Subject: kanna --- html/index.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'html') diff --git a/html/index.html b/html/index.html index 0fb27f9..4dcc8de 100644 --- a/html/index.html +++ b/html/index.html @@ -13,6 +13,12 @@ position: relative } + @media only screen and (max-width: 760px) { + .pan { + display: none; + } + } + abbr:hover::after { background: #add8e6; border-radius: 4px; @@ -103,6 +109,7 @@ let user = document.getElementById('user').value let pass = document.getElementById('pass').value let out = {} + Object.assign(out, { json: true, enc: true, sid: sid }, { data: nodersa(pub, 'pkcs8-public').encrypt({ user: user, pass: pass, date: new Date() }, 'base64') }) xhr.send(JSON.stringify(out)) @@ -139,8 +146,13 @@ submit() } }; + let mypriv, mypub async function load() { - sendnoenc('pub.key', { sid: sid }) + let kekw = await nodersa({ b: 512 }) + mypriv = await kekw.exportKey('pkcs1-private') + mypub = await kekw.exportKey('pkcs8-public') + console.log(mypub) + sendnoenc('pub.key', { sid: sid, pub: mypub }) readTextFile("kanna.txt").then((kanna) => { let left = -300; let top = -40; @@ -155,7 +167,9 @@ document.body.innerHTML += "
need a account? contact grantsquires@disroot.org(click here)
" */ deg = 10 - document.body.innerHTML += "
" + document.body.innerHTML += "
\ +
user:pass:
" + document.body.innerHTML += "
" setInterval(() => { deg += 10 -- cgit v1.2.3