bugfix as openssl 1.0.2 does not accept a key longer than 64Bytes in hex

openssl 1.0.1 just strips the key
pull/2/head
rjaeckel 8 years ago
parent 2be33e7453
commit 15bbe37986

@ -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 ---

Loading…
Cancel
Save