dadreamer Posted August 31 Report Share Posted August 31 On 8/30/2024 at 7:44 PM, Rolf Kalbermatter said: This function exists in LabVIEW since about at least 5.0 or thereabout and likely has never been looked at again since, other than use it. For an odd reason I don't see such a function in LabVIEW 5.x, 6.x and 7.x. It appears only in 8.2, maybe it's available since 8.0 too, can't check right now. Well, I ran a quick binary search for "GetMD5Digest" word and found, that such a function was being used in ...\LabVIEW 8.2\vi.lib\imath\engines\lvmath\Utility\MD5.vi. That VI was password-protected, the password was calvinthegorilla (😁) and, of course, was removed like 1-2-3. Here's the VI to play: MD5_8_2.vi As shown, the prototype is still correct, just some extra "secret" / key was applied. Works well in LV 2023 Q3 64-bit. 1 Quote Link to comment
Novgorod Posted September 1 Report Share Posted September 1 (edited) 6 hours ago, dadreamer said: As shown, the prototype is still correct, just some extra "secret" / key was applied. Works well in LV 2023 Q3 64-bit. You, Sir, are a hero! I've seen that "super secret" string in the binary code, but didn't have a clue what that meant.... Anyhow, a quick benchmark shows an order of magnitude better performance compared to the G code for large block sizes! (Run several times, of course, with similar results, so it's not a fluke..) The G code is exactly the vi.lib implementation but consolidated into a single VI and the output is a raw 16-byte string (not converting to a hex string, though it's irrelevant here because it's only called once). For smaller block sizes, the performance is getting closer, but the function call is still several times faster (but have to properly benchmark it with with many calls in a loop for short blocks). So now it looks not completely unreasonable to poke around in the attic... Edited September 1 by Novgorod Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.