Defold-MD5

logo

Defold MD5

This Extension allows you calculate MD5 in native from string

Defold-MD5 Native Extension for the Defold Game Engine

This extension allows you calculate MD5 in native part from string

Github Link
Asset Link

Short API:

MD5.calculate(string)

  • return MD5 hash from string

Examples you can find in GitHub repository

Notes

This is extension, what we use in Family Age
If you will use our extension and find some bugs or have some suggestions, you are welcome, tell about it!
NE wrapped by @denis.smirnov.by

19 Likes

Nice!
One question, what are you using it for in the game?

1 Like

It was needed for client-server communication
We have signed parameters with MD5. Not sure what now this is still using, but NE already exist for fast calculate hash :slight_smile:

2 Likes

Just figured out that Defold has MD5 out of the box - github.

print(hashmd5("Hello Defold!"))

-- DEBUG:SCRIPT: d97b1b6e86031cee29169a800fd374de

:sweat_smile:

3 Likes

Also note that if it’s undocumented, it’s deprecated.
It’s there for backwards compatibility, but at some point, we might just cut it.

4 Likes