From 44705ab5e8f35f63251ee899cbdf165b2d40bf1c Mon Sep 17 00:00:00 2001 From: lxRbckl Date: Fri, 1 Mar 2024 16:40:31 -0600 Subject: [PATCH] Update --- .DS_Store | Bin 0 -> 6148 bytes source/client.js | 5 +++++ source/command/decrypt.js | 6 ++++++ source/command/encrypt.js | 4 ++++ 4 files changed, 15 insertions(+) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..b8eb8d77532b49cbe4358121c85623e1a2505627 GIT binary patch literal 6148 zcmeHKOG*Pl5Pcn^#27(w<3^YZ7|0Dq85b_x=m9i86HVd-W5DHr;Kn<61y3P(C0FrP zcN1oM)TO9YLHFzFs#o3h!c3^?E^ODkE$&ukKnL;o(Zn@o zLHtt?-(YlVgsiBPli7|8@N_Lw>349z$y(NT@RVio+uM{xV^(ec$du@eUS`^vB%6IXK4CIz{;SVD)6HUd;q(C Bq8$JL literal 0 HcmV?d00001 diff --git a/source/client.js b/source/client.js index 9829c32..9ad18f6 100644 --- a/source/client.js +++ b/source/client.js @@ -82,6 +82,8 @@ class client { }) { + console.log('message', pKind, pTitle, pDescription) + return { 'member' : async () => { @@ -180,6 +182,9 @@ class client { // > + console.log('result', result); // remove + + await this.message({ pKind : 'interaction', diff --git a/source/command/decrypt.js b/source/command/decrypt.js index 0fb7747..3b45282 100644 --- a/source/command/decrypt.js +++ b/source/command/decrypt.js @@ -85,6 +85,8 @@ class decrypt extends encrypt { }) { + console.log('decrypt', pTag, pKey, pUsers, pFilePath); // remove + const result = await this.core({ pKey : pKey, @@ -92,10 +94,13 @@ class decrypt extends encrypt { }); + console.log('decrypt result', result); // remove + // if (original) < // else (then shared) < if (pTag == result.owner) { + console.log('decrypt original'); return { content : '> ' + (result.content).replace(/ /g, '\n> '), @@ -115,6 +120,7 @@ class decrypt extends encrypt { } else { + console.log('decrypt duplicate'); return await this.run({ isShared : true, diff --git a/source/command/encrypt.js b/source/command/encrypt.js index c952e93..3c4fcb8 100644 --- a/source/command/encrypt.js +++ b/source/command/encrypt.js @@ -66,6 +66,8 @@ class encrypt { pShare = [] }) { + + console.log('encrypt', pTag, pKey, pContent, pFilePath); // remove // setup < const key = Buffer.from(pKey); @@ -81,6 +83,8 @@ class encrypt { // > + + await this.database.setFile({ pFile : pFilePath,