From d6b68b7988fad876380e31816a113d7b3ba8ee02 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 16 May 2023 13:20:02 +0200 Subject: genkey neu --- encrypt_key.js | 9 +++++++++ genkey.html | 26 ++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 encrypt_key.js create mode 100644 genkey.html diff --git a/encrypt_key.js b/encrypt_key.js new file mode 100644 index 0000000..2a36177 --- /dev/null +++ b/encrypt_key.js @@ -0,0 +1,9 @@ +function encrypt_private_key(password, private_key) { + let public_key = private_key.substring(64,128); + let priv = sodium.from_hex(private_key.substring(0,64)); + if (password.length > 0) { + for (i=0; i + + + + + + + +

+ + -- cgit v1.2.3-70-g09d2