Here is my requirement
I was trying to use this but with no luck https://code.google.com/p/lua-files/wiki/hmacThese are the steps I followed
Now in the file I use it like this
local hmac = require'hmac'
local sha2 = require'sha2'
--somewhere down the line inside a function
local hashvalue = hmac.sha2('key', 'message')
but unfortunately this does not work and I'm not sure what I'm doing wrong. Can anyone advice me what I'm doing wrong here? Or is there an easier and better way of doing this with a good example.
Also I'm doing this to get the returned string
local hashvalue = hmac.sha2( message, key )
myLogger:trace ('Winter is coming, ' .. hashvalue)
When I load lightroom it refuses to load the plugin and there is nothing on the log.
Thank you very much for your help
You also need ffi, bit, and glue - look at the require statements in hmac.lua.