FeudalLucy
(FeudalLucy)
October 3, 2021, 1:54am
#1
Hiya!
I’m currently working on making a fun, “encrypted” string system. It holds no valuable information.
It is merely encrypting the chats of a player.
I want to know how I would be able to create a code that could mess with the text.
For example:
“Hi. How are you.”
Becomes looking like something like this:
“Jf. Rtv ptm thf.”
No real order in this one.
I hope to achieve this by making a system that can change the letters, for example, A becomes C, B becomes D, etc etc. May anyone help me?
Edit:
I do not need it to be decrypted.
Sure, here’s a simple encryption/decryption using Caesar cipher . Basically, the idea is to take a peice of string and shift each character down/up by a fixed number of positions (character codes ).
For this, we will use two functions of the string library: string.byte and string.char. The first one returns the internal numerical code for the character passed as the first argument and the second one returns the character for the internal numerical code passed as the first argument.
local functio…
Here’s a good post on how to implement a Caesar Cipher in roblox.
1 Like
FeudalLucy
(FeudalLucy)
October 3, 2021, 2:04am
#3
Thank you for the reply, I’ll give this a shot now. I’m attempting to use it in a chat system using UpdateMessageFiltered so I’ll let you know if this works.