Open NicoAdrian opened 1 year ago
I think you can calculate the hmac_sha256 in lua and then set the value by ngx.var.your_var_name = hmac_sha256_val
I think you can calculate the hmac_sha256 in lua and then set the value by ngx.var.your_var_name = hmac_sha256_val
There is no built-in way in openresty to calculate an hmac_sha256 directly in Lua, or am I missing something ?
https://github.com/fffonion/lua-resty-openssl#restyopensslhmac how about this?
https://github.com/fffonion/lua-resty-openssl#restyopensslhmac how about this?
Will give it a try, thanks. Still, no plan to add NDK support for the directive set_hmac_sha256
?
Any plan to add NDK support to the
set_hmac_sha256
directive ?Would be great if I can call it in Lua like this
ndk.set_var.set_hmac_sha256