md5

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Sparx
Party member
Posts: 125
Joined: Thu Apr 02, 2009 9:54 am
Location: Aachen, Germany

md5

Post by Sparx » Thu Jul 09, 2009 8:07 pm

I need an algorythm for md5sum....
It's not implemented in löve so how can i include such an external lib?

SnakeFace
Prole
Posts: 28
Joined: Tue Aug 19, 2008 2:45 pm

Re: md5

Post by SnakeFace » Thu Jul 09, 2009 8:21 pm

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.
Lovely quotes
somewhere within the jungle of administrative doom - rude

User avatar
Sparx
Party member
Posts: 125
Joined: Thu Apr 02, 2009 9:54 am
Location: Aachen, Germany

Re: md5

Post by Sparx » Thu Jul 09, 2009 8:35 pm

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.

User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: md5

Post by Robin » Thu Jul 09, 2009 9:23 pm

You might want to check out http://www.keplerproject.org/md5/ if you haven't already.
Help us help you: attach a .love.

User avatar
Sparx
Party member
Posts: 125
Joined: Thu Apr 02, 2009 9:54 am
Location: Aachen, Germany

Re: md5

Post by Sparx » Thu Jul 09, 2009 9:29 pm

I have don't really know how to integrate...

User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: md5

Post by Robin » Thu Jul 09, 2009 9:36 pm

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...
Help us help you: attach a .love.

User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: md5

Post by bartbes » Fri Jul 10, 2009 7:12 am

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')

User avatar
Sparx
Party member
Posts: 125
Joined: Thu Apr 02, 2009 9:54 am
Location: Aachen, Germany

Re: md5

Post by Sparx » Fri Jul 10, 2009 12:34 pm

Is it possbile that you integrate MD5SUM into Love 0.6?

User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: md5

Post by bartbes » Fri Jul 10, 2009 1:29 pm

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...)

User avatar
ljdp
Party member
Posts: 209
Joined: Sat Jan 03, 2009 1:04 pm
Contact:

Re: md5

Post by ljdp » Sat Jul 11, 2009 10:39 am

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

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 280 guests