Recommendation for md5?

Today I discovered that the md5 implementation that I copied from the net and put in Scriptable’s lib folder does not handle the € sign correctly. It gives a different hash than most online generators. Worse: the API that I use refuses signatures for text with a € sign in it (probably because the md5 calculation is wrong).

Any tips for an md5 library/implementation that I can use in Scriptable?

EDIT: “Zibri”'s solution on Stack Overflow seems to work for me.

Still recommendations (or md5 support in Scriptable) are welcome!