Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 90089

Re: LR 5 functions, methods, and properties not in LR 4 docs

$
0
0

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


Viewing all articles
Browse latest Browse all 90089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>