Hi john,
I really appreciate the quick response and I have been struggling with this for a few days. Your example above works perfectly.
This is what I did
local sha = import 'LrDigest'
d = sha.SHA256.digest ("Hello world")
My requirement is to do HMAC
if you do this in PHP you do like this
$genarated_hmac = hash_hmac("sha256",'string input','private key');
I tried this in my Lua plugin file but it crashed the plugin
This is what I did
local sha = import 'LrDigest'
d2 = sha.HMAC.digest ('SHA256', 'test1','test2')
I was shooting in the dark as there was no reference I could use.
Please help me if you can.
Thanks heaps again