Removed direct substitution in encrypt and decrypt scripts.
This commit is contained in:
parent
94105c2c49
commit
7ab23985e1
2 changed files with 6 additions and 5 deletions
|
@ -55,9 +55,10 @@ trap 'on_exit' EXIT
|
|||
|
||||
# Read the JWE protected header
|
||||
read -r -d . hdr
|
||||
echo "$hdr" > "$tmp"/hdr
|
||||
|
||||
# Decode the JWE protected header
|
||||
if ! jhd="$(jose b64 dec -i- < <(echo "$hdr"))"; then
|
||||
if ! jhd="$(jose b64 dec -i- < "$tmp"/hdr)"; then
|
||||
echo "Error decoding JWE protected header" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue