[Worked Around] Please include Cpryto for resource checking!

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
OnlyFails
Prole
Posts: 6
Joined: Fri May 02, 2014 9:00 pm

[Worked Around] Please include Cpryto for resource checking!

Post by OnlyFails »

The site http://mkottman.github.io/luacrypto/manual.html has a library for encrypting strings into MD5 strings.
By serialising files you can compare files on the local storage device with an expected MD5 string to detect if there are any discrepancies (via hacking or cheating, etc.)
This is very handy library and I request it's inclusion into this amazing engine!

Image

Thank you for your time.
- OnlyFails
Last edited by OnlyFails on Sun Jun 08, 2014 1:56 pm, edited 1 time in total.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Please include Cpryto for resource checking!

Post by kikito »

If they can change the files in the hard drive, they can change the source code (and make md5 return "true").

That said, there're several plain-lua implementations of md5 around. It so happens that I have one:

https://github.com/kikito/md5.lua

Mind you, since it's compatible with Lua 5.1 it doesn't use LuaJIT's bit32 library, so it must use strings for binary ops. So don't expect super-duper fast results. But you should be ok for small or medium things (like textual config files).
When I write def I mean function.
User avatar
slime
Solid Snayke
Posts: 3170
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Please include Cpryto for resource checking!

Post by slime »

Here are a couple more you can use which use LuaJIT's FFI:

https://github.com/Wiladams/LAPHLibs
http://luapower.com/md5
User avatar
OnlyFails
Prole
Posts: 6
Joined: Fri May 02, 2014 9:00 pm

Re: Please include Cpryto for resource checking!

Post by OnlyFails »

So it took me about over a week to figure out but I'm compiling my own version of love with the obvious issues kikito mentioned.
By compiling my own version I can keep the source code hidden so it can't be modified, to prevent tampering.

Thanks again guys, the forums are amazing filled with helpful people and active developers!
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 5 guests