function print(...) local szString = ""; for i, v in pairs{...}do szString = szString..tostring(v).."\t"; end local orig = Input.GetText("Input1"); Input.SetText("Input1", orig..szString.."\r\n"); end qsha = { algorithm = "sha512"; allowed = {"sha1", "sha224", "sha256", "sha384", "sha512"}; -- Set the algorithm to use, defaults to sha512 setAlgorithm = function(name) for i, v in pairs(qsha.allowed)do if(v == name)then qsha.algorithm = name; return true; end end; return false; end; -- Get a table of available aglorithms getAlgorithms = function() return qsha.allowed; end; -- Generate SHA from string string = function(sz) return DLL.CallFunction("AutoPlay\\Docs\\qsha.dll", "quickStringHash", "\""..qsha.algorithm.."\",\""..sz.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end; -- Generate SHA from string, but first blowfish encrypt the input string using the key. blowfishString = function(sz, key) return DLL.CallFunction("AutoPlay\\Docs\\qsha.dll", "quickBlowfishStringHash", "\""..qsha.algorithm.."\",\""..sz.."\",\""..key.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end; -- Generate SHA from file file = function(path) return DLL.CallFunction("AutoPlay\\Docs\\qsha.dll", "quickFileHash", "\""..qsha.algorithm.."\",\""..path.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end; -- Generate SHA from buffer buffer = function(lpBuffer, size) return DLL.CallFunction("AutoPlay\\Docs\\qsha.dll", "quickHash", "\""..qsha.algorithm.."\","..tostring(lpBuffer)..","..tostring(size), DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end; }