grump wrote: ↑Sun Mar 24, 2019 6:21 pm
There is no built-in API for encryption. What do you need it for, how secure does it have to be?
I'm working on a multiproposal multiplatform "easy to use" game engine. I think the best option is something easy to use but enough secure to protect data from dataminers or hackers (and maybe for some multiplayer game)
Darlex wrote: ↑Sun Mar 24, 2019 8:26 pm
something easy to use but enough secure to protect data from dataminers or hackers (and maybe for some multiplayer game)
This looks decent, and is pure Lua code. Pick one of the faster cryptos.
Protection from a dedicated hacker is unattainable. Particularly for a game written in a script language.
I would employ a simple and fast obfuscation scheme instead of using full-blown crypto.
grump wrote: ↑Sun Mar 24, 2019 9:37 pmThis looks decent, and is pure Lua code. Pick one of the faster cryptos.
Protection from a dedicated hacker is unattainable. Particularly for a game written in a script language.
I would employ a simple and fast obfuscation scheme instead of using full-blown crypto.
Also, if you do end up using one from there, you'll probably need to rewrite it because they may use features not available with LuaJIT (those | & >> << ops i saw are most definitely ones that i don't recall existing), löve does include the packing utilities, and LuaJIT comes with its own binops lib, but the api is different for the latter, and (at least) the namespace is for the former.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
zorg wrote: ↑Mon Mar 25, 2019 12:37 am
Also, if you do end up using one from there, you'll probably need to rewrite it because they may use features not available with LuaJIT/
Ah yes, I did not realize it's for Lua 5.3. Just picked the first decently looking result from Google.
"Rewrite" is a bit of a hyperbole, it looks like it's just a few changes for the fast algos, like NORX.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.