diff --git a/ocdec.sh b/ocdec.sh index 1388c2f..2f682d0 100755 --- a/ocdec.sh +++ b/ocdec.sh @@ -124,6 +124,7 @@ function decryptFile() { decFileKeyContent="$( openssl rc4 -d -in "$encFileKeyPath" -iv 0 -K $decUserFileShareKeyHEX )" decFileKeyContentHEX="$( echo -n $decFileKeyContent |od -An -tx1 |tr -dc '[:xdigit:]' )" + decFileKeyContentHEX=${decFileKeyContentHEX:0:64} # --- Get the FileKey --- # --- Decrypt the file ---