How to make data flow more secure?

Hello!

For my DataStore system, I am trying to make it secure againts RemoteEvent abuse, how should I manage it?

This section for my code is responsible for controlling Data requests

function TranslateCall(callData)
	for i, v in pairs(callData) do
		local suc, err = pcall(function()
			local PlrId = v.PlrId
			local Ttype = v.Type
			local value = v.Value

			local LPlrFol = PlayerDataFolder[PlrId]
			local SVal = LPlrFol[Ttype]
			SVal.Value = SVal.Value + value
		end)
		if not suc then warn(err) end
	end
end

Should I introduce a key system, where each call needs a special key to execute?
Please share me your ideas :happy1:

1 Like

No. Just limit the power of the client and what remote events can do. Implement sanity checks on the server and client but rely off the server mainly. Adding encryption is just a annoyance to your self as a developer and can probably be bypassed.

edit: if you need help with implementation I could help

5 Likes