Pure hash is a pure lua sha-256 library. It is meant to be lightweight and portable. Pure Hash includes salted hashing.
luarocks install pure_hash
Clone or download the repository and place the Pure Hash in your project folder.
include this at the top of your file:
local crypto = require("pure_hash")
For documentation and examples see DOCS.MD and examples/examples.lua