MD5 Implementation

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: MD5 Implementation

Post by Ref »

Not to muddy the water but when I try undef's little example I get all zeros.

Code: Select all

00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
Windows 7 using Love 9.2 and Love 10
md5 _VERSION = "md5.lua 0.5.0",
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: MD5 Implementation

Post by kikito »

The current md5.lua version is 1.0.2. Please try that one instead.
When I write def I mean function.
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: MD5 Implementation

Post by Ref »

Ok! Tried the newer md5.
Get same printout for multiple calls to md5.sumhexa when print is used in Love.

Code: Select all

160607b5160607b5160607b5160607b5
160607b5160607b5160607b5160607b5
160607b5160607b5160607b5160607b5
but when I use love.print I get

Code: Select all

1ab79eda1ab79eda1ab79eda1ab79eda
1ab79eda1ab79eda1ab79eda1ab79eda
1ab79eda1ab79eda1ab79eda1ab79eda
for 3 md5.sumhexas calls but

Code: Select all

160607b5160607b5160607b5160607b5
for <3 or >3 md5.sumhexa
If I put a blank print between each print I get

Code: Select all

160607b5160607b5160607b5160607b5
no matter how many times md5.sumhexa is called.
Don't know if this makes any sense to you.
User avatar
undef
Party member
Posts: 438
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

Re: MD5 Implementation

Post by undef »

@Kikito:
I used LÖVE 0.9.2 for this on Arch Linux.
Does this not happen on your computer?

Happy Halloween, I guess? :?
twitter | steam | indieDB

Check out quadrant on Steam!
szensk
Party member
Posts: 155
Joined: Sat Jan 19, 2013 3:57 am

Re: MD5 Implementation

Post by szensk »

This is a strange error.

I tried replicating on my machine but no success. Do either of you have a complete example I can test?
Post Reply

Who is online

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