Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
boomzero committed Aug 14, 2024
1 parent 311b811 commit 8f7453a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -868,15 +868,15 @@ export class Process {
} else if (LastMessageTo.toString() === "") {
LastMessage = LastMessageFrom;
if (LastMessage[0]["content"].startsWith("Begin xssmseetee v1 encrypted message")) {
LastMessage[0]["content"] = CryptoJS.AES.decrypt(LastMessage[0]["content"].substring(34), this.shortMessageEncryptKey + Data["OtherUser"] + this.Username).toString(CryptoJS.enc.Utf8);
LastMessage[0]["content"] = CryptoJS.AES.decrypt(LastMessage[0]["content"].substring(37), this.shortMessageEncryptKey + Data["OtherUser"] + this.Username).toString(CryptoJS.enc.Utf8);
} else {
let preContent = LastMessage[0]["content"];
LastMessage[0]["content"] = "无法解密消息, 原始数据: " + preContent;
}
} else {
LastMessage = LastMessageFrom[0]["send_time"] > LastMessageTo[0]["send_time"] ? LastMessageFrom : LastMessageTo;
if (LastMessage[0]["content"].startsWith("Begin xssmseetee v1 encrypted message")) {
LastMessage[0]["content"] = CryptoJS.AES.decrypt(LastMessage[0]["content"].substring(34), this.shortMessageEncryptKey + this.Username + Data["OtherUser"]).toString(CryptoJS.enc.Utf8);
LastMessage[0]["content"] = CryptoJS.AES.decrypt(LastMessage[0]["content"].substring(37), this.shortMessageEncryptKey + this.Username + Data["OtherUser"]).toString(CryptoJS.enc.Utf8);
} else {
let preContent = LastMessage[0]["content"];
LastMessage[0]["content"] = "无法解密消息, 原始数据: " + preContent;
Expand Down Expand Up @@ -945,7 +945,7 @@ export class Process {
for (const i in Mails) {
const Mail = Mails[i];
if (Mail["content"].startsWith("Begin xssmseetee v1 encrypted message")) {
Mail["content"] = CryptoJS.AES.decrypt(Mail["content"].substring(34), this.shortMessageEncryptKey + Data["OtherUser"] + this.Username).toString(CryptoJS.enc.Utf8);
Mail["content"] = CryptoJS.AES.decrypt(Mail["content"].substring(37), this.shortMessageEncryptKey + Data["OtherUser"] + this.Username).toString(CryptoJS.enc.Utf8);
} else {
let preContent = Mail["content"];
Mail["content"] = "无法解密消息, 原始数据: " + preContent;
Expand Down

0 comments on commit 8f7453a

Please sign in to comment.