Skip to content

Commit

Permalink
Use OpenSSL for B64 encoding not base64 which differs between Linux…
Browse files Browse the repository at this point in the history
… and Mac elasticdog#140
  • Loading branch information
jmurty authored and Erotemic committed Jul 3, 2022
1 parent 3dd51a5 commit c38a257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transcrypt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ _openssl_encrypt() {
# Encrypt file to binary ciphertext
ENC_PASS=$password "$openssl_path" enc -e "-${cipher}" -md "${digest}" -pass env:ENC_PASS -S "$final_salt" ${pbkdf2_arg:+"$pbkdf2_arg"} -in "$tempfile"
) |
base64
openssl base64
else
# Encrypt file to base64 ciphertext
ENC_PASS=$password "$openssl_path" enc -e -a "-${cipher}" -md "${digest}" -pass env:ENC_PASS -S "$final_salt" ${pbkdf2_arg:+"$pbkdf2_arg"} -in "$tempfile"
Expand Down

0 comments on commit c38a257

Please sign in to comment.