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 7d1ebf8 commit 311b811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ export class Process {
if (Data["Content"].length > 2000) {
return new Result(false, "短消息过长");
}
let encryptedContent = "Begin xssmseetee v1 encrypted message" + CryptoJS.AES(Data["Content"], this.shortMessageEncryptKey + this.Username + Data["ToUser"]).toString(CryptoJS.enc.Utf8);
let encryptedContent = "Begin xssmseetee v1 encrypted message" + CryptoJS.AES.encrypt(Data["Content"], this.shortMessageEncryptKey + this.Username + Data["ToUser"]).toString(CryptoJS.enc.Utf8);
const MessageID = ThrowErrorIfFailed(await this.XMOJDatabase.Insert("short_message", {
message_from: this.Username,
message_to: Data["ToUser"],
Expand Down

0 comments on commit 311b811

Please sign in to comment.