Import Script, or callable script in HR .. MD5 hash

I’m working on the Blue Iris API which requires calculating an MD5 hash.

I’ve found MD5 hash libraries online, which I don’t believe HR will allow me to Import. But, can I create a script containing this code within HR and call it from my plugin?

Thanks /keith

I added a “sha1” function earlier this year for a user. I can probably add a “md5” function for you in the next release.

https://www.php.net/manual/en/function.md5.php

https://www.w3schools.com/php/func_string_md5.asp

Thank you Bill, very much appreciated.

WRT scripts - I know how to create a plugin. Can I create another script, say for utility methods, and call them from my plugin?

Thanks /keith

Sorry. Not currently.

I added a “sha1” function earlier this year for a user. I can probably add a “md5” function for you in the next release.

That’s great, thank you Bill. I’ve discovered that an MD5 javascript impl I found online works fine in the simulator, but produces incorrect results when running in the IOS app. This seems similar to the problem the guy was having with an SHA1 javascript impl with Android.

Had you the opportunity to add the MD5 Hash function in the lastest release ? /keith

Yes. The md5 function was added in the 4.4 release.

1 Like

Excellent … Thank you BIll. My Blue Iris plugin is working now on IOS with the md5() function :slight_smile:

1 Like