From c38a257aeb25467d83467ef121362683395f023a Mon Sep 17 00:00:00 2001 From: James Murty Date: Fri, 1 Jul 2022 21:28:03 +1000 Subject: [PATCH] Use OpenSSL for B64 encoding not `base64` which differs between Linux and Mac #140 --- transcrypt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transcrypt b/transcrypt index fcafce2..969e935 100755 --- a/transcrypt +++ b/transcrypt @@ -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"