y0014984 / Advanced-Equipment

Advanced Equipment is a Arma 3 mod, that brings equipment to life, like laptops and lamps.
Other
30 stars 10 forks source link

'caesar' encryption: allow additional signs and symbols #280

Open y0014984 opened 1 year ago

y0014984 commented 1 year ago

At the moment only the 26 upper case characters of the latin alphabet are allowed for the caesar algorythm, used in the crack and crypto commands, but additional characters would be useful.

Adding these additional characters we would end up with 36 characters: ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_ With more allowed characters the bruteforce attack takes longer, but 36 is not a problem. But if more players want even more allowed symbols, perhaps also lowercase, then this becomes a problem if you want a useable bruteforce attack.

Or we could do something different: Keep the 26 characters but add the 10 numbers via a parallel encryption, so you can see in the encrypted text, that at this position is a encrypted number. So, if you have a key of 3, an X encrypts to a A and a 9 encrypts to a 2. This would keep the simplicity of the algorythm, but also allows encryption of numbers.

We also could allow every other sign and keep it as it is, so it's not encrypted, like we do at the moment with the space character.

I need to think about that. Any opinions?