|
|
@ -139,7 +139,8 @@ function decryptFile() {
|
|
|
|
iv=$(echo -n "$iv" | od -An -tx1 | tr -dc '[:xdigit:]' )
|
|
|
|
iv=$(echo -n "$iv" | od -An -tx1 | tr -dc '[:xdigit:]' )
|
|
|
|
# decode chunk
|
|
|
|
# decode chunk
|
|
|
|
openssl enc -AES-256-CFB -d -nosalt -base64 -A -K $decFileKeyContentHEX -iv $iv -in <(echo "$payload")
|
|
|
|
openssl enc -AES-256-CFB -d -nosalt -base64 -A -K $decFileKeyContentHEX -iv $iv -in <(echo "$payload")
|
|
|
|
done <<<`sed -r 's/^HBEGIN:.+:HEND-*//' <"${USER}/$encFilePath"` # pipe the encrypted file without head into the loop
|
|
|
|
#done <<<`sed -r 's/^HBEGIN:.+:HEND-*//' <"${USER}/$encFilePath"` # pipe the encrypted file without head into the loop
|
|
|
|
|
|
|
|
done < <(dd bs=$chunkSize skip=1 if="${USER}/$encFilePath")
|
|
|
|
# --- Decrypt the file ---
|
|
|
|
# --- Decrypt the file ---
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|