Page 1 of 2

md5

Posted: Thu Jul 09, 2009 8:07 pm
by Sparx
I need an algorythm for md5sum....
It's not implemented in löve so how can i include such an external lib?

Re: md5

Posted: Thu Jul 09, 2009 8:21 pm
by SnakeFace
Can't love do 'require' on a dll if it's inside the love file? Not sure though, it may need to be compiled into love.

Re: md5

Posted: Thu Jul 09, 2009 8:35 pm
by Sparx
I don't know how to complie löve and i don't want to know...
requiring the dll doesn't work.. did it how they tell for integrsting in "Normal" lua.. didn't work neither.

Re: md5

Posted: Thu Jul 09, 2009 9:23 pm
by Robin
You might want to check out http://www.keplerproject.org/md5/ if you haven't already.

Re: md5

Posted: Thu Jul 09, 2009 9:29 pm
by Sparx
I have don't really know how to integrate...

Re: md5

Posted: Thu Jul 09, 2009 9:36 pm
by Robin
I actually think you will need to use love.native for this (except if you want to compile the C for every platform)... but here I found an MD5 implementation in Lua, only for that you need bitlib...

Re: md5

Posted: Fri Jul 10, 2009 7:12 am
by bartbes
Well, you can't load dlls from the .love (and they're no cross-platform! :x) However, they are searched for in the LÖVE install dir (and some others, but ignore that, they are 'unstable')

Re: md5

Posted: Fri Jul 10, 2009 12:34 pm
by Sparx
Is it possbile that you integrate MD5SUM into Love 0.6?

Re: md5

Posted: Fri Jul 10, 2009 1:29 pm
by bartbes
Add it to the feature tracker, everything in the tracker will be looked at, so that's all you can do, basically. Though I imagine it can't be that hard? (well, you have to run it through love.filesystem, but that's about as hard as it gets...)

Re: md5

Posted: Sat Jul 11, 2009 10:39 am
by ljdp
There is a md5 function written in pure lua somehwere...
Ah wait no it's SHA-1, still impressive though
http://regex.info/blog/lua/sha1