mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[mod] comment didn't matched reality
This commit is contained in:
parent
aca5f054ab
commit
50fcc831bf
1 changed files with 2 additions and 3 deletions
|
@ -77,10 +77,9 @@ function hmac_sha512(key, message)
|
||||||
if not cache:get(cache_key) then
|
if not cache:get(cache_key) then
|
||||||
-- lua ecosystem is a disaster and it was not possible to find a good
|
-- lua ecosystem is a disaster and it was not possible to find a good
|
||||||
-- easily multiplatform integrable code for this
|
-- easily multiplatform integrable code for this
|
||||||
-- Python has this buildin, so we call it directly
|
|
||||||
--
|
--
|
||||||
-- this is a bad and probably leak the key and the message in the process list
|
-- this is really dirty and probably leak the key and the message in the process list
|
||||||
-- but if someone got there I guess we really have other problems
|
-- but if someone got there I guess we really have other problems so this is acceptable
|
||||||
-- and also this is way better than the previous situation
|
-- and also this is way better than the previous situation
|
||||||
local pipe = io.popen("echo -n '" ..message.. "' | openssl sha512 -hmac '" ..key.. "'")
|
local pipe = io.popen("echo -n '" ..message.. "' | openssl sha512 -hmac '" ..key.. "'")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue