No Chat Reports

No Chat Reports

43M Downloads

§ is appeared in encrypted messages

IlyaYezelovsky opened this issue · 5 comments

commented

Modloader

Forge

Minecraft Version

1.19.3

Modloader Version

Forge 44.0.48

No Chat Reports Version

1.19.3-v1.6.0

Modpack Info

No response

The latest.log File

No response

Bug Description

I am using Caesar to encrypt messages, and I'm kicked by the server because invaild characters. I think § is appeared in the encrypted message.

Steps to Reproduce

No response

Other Information

The server is mine, and have not any plugins except FreedomChat and AuthMe.

commented

To help debug this, what is the number you are using in Caesar and the message you sent?

commented

I don't remember this, but the message I sent is Chinese.

commented

I don't think every valid unicode codepoint has its immediate surrounding codepoints also be valid unicode codepoints.

and since i'm guessing the unicode caesar doesn't check to make sure the codepoints it sends are valid...

i'm not sure if there's a way to fix this without rewriting, and I'm doubtful that will be worth the effort.

commented

I don't think it's an issue with § specifically because that particular symbol is checked for and replaced with another one. Unfortunately I need an exact shift and an example of message text that causes the issue in order to be able to reproduce and fix it.

commented

I don't think it needs to be fixed because invaild characters always appear in the Unicode table, which cannot be avoided when using Caesar encryption.