How to convert PHP pack function into Lua equivalent? - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: How to convert PHP pack function into Lua equivalent? (/showthread.php?tid=2043) |
How to convert PHP pack function into Lua equivalent? - MichelDeLigne - 23.04.2019 Hello, Does anyone know how I could convert the following PHP code to Lua? Code: MD5Salt = pack( It looks like string.pack exists in Lua but I could not find it in LM. I tried a few other approaches with some external libraries, but that failed, probably due to some incompatibilities. I am a bit stuck here. I need this to interface LM with a Buderus KM200, which uses an encrypted api. Regards. Michel. RE: How to convert PHP pack function into Lua equivalent? - admin - 23.04.2019 Use this: Code: MD5Salt = string.char( RE: How to convert PHP pack function into Lua equivalent? - MichelDeLigne - 24.04.2019 It works. Thanks :-) |