Pure LUA code to generate SHA256 of strings (implementation of SHA256 algorithm in pure LUA 5.2), works in Fibaro Home Center 3.
Paste the code into your LUA 5.2 script or Fibaro HC3 LUA scene, and then use sha256() function to get SHA256 of a string.
Usage example (assuming the whole function code was copied and pasted into the script):
local input = "abc"
local result = sha256(input)
print("SHA256 of '" .. input .. "' :", result)