Digesting real data, no crlf

This commit is contained in:
kexkey
2018-11-04 15:17:23 -05:00
parent 0b8f34e221
commit 43eb8d6650
5 changed files with 10 additions and 10 deletions

View File

@@ -7,7 +7,7 @@ invoke_cyphernode()
local action=${1}
local post=${2}
local p64=$(echo "{\"id\":\"${id}\",\"exp\":$((`date +"%s"`+10))}" | base64)
local p64=$(echo -n "{\"id\":\"${id}\",\"exp\":$((`date +"%s"`+10))}" | base64)
local s=$(echo -n "$h64.$p64" | openssl dgst -hmac "$key" -sha256 -r | cut -sd ' ' -f1)
local token="$h64.$p64.$s"