On Ubuntu 18.04 OpenSSL 1.1.0g - can't decrypt files, even with md5

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Previously, I was encrypting with:
openssl des3 -salt -in $INSECURE_CONFIG_FILE -out $CONFIG_FILE -pass pass:$PASSWORD
and decrypting with:
openssl des3 -d -salt -in $CONFIG_FILE -out $INSECURE_CONFIG_FILE -pass pass:$PASSWORD
I've found lots of mention of specifying -md md5 since the new default is sha256, but even with the following, I am still unable to decrypt my previously encrypted files:
openssl des3 -d -salt -md md5 -in $CONFIG_FILE -out $INSECURE_CONFIG_FILE -pass pass:$PASSWORD
I get the following error:
bad decrypt
140596295451072:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:536:
I noticed that if I add -nopad, then I get no error, but my resulted decrypted data is gibberish.
linux ubuntu openssl
add a comment |Â
up vote
0
down vote
favorite
Previously, I was encrypting with:
openssl des3 -salt -in $INSECURE_CONFIG_FILE -out $CONFIG_FILE -pass pass:$PASSWORD
and decrypting with:
openssl des3 -d -salt -in $CONFIG_FILE -out $INSECURE_CONFIG_FILE -pass pass:$PASSWORD
I've found lots of mention of specifying -md md5 since the new default is sha256, but even with the following, I am still unable to decrypt my previously encrypted files:
openssl des3 -d -salt -md md5 -in $CONFIG_FILE -out $INSECURE_CONFIG_FILE -pass pass:$PASSWORD
I get the following error:
bad decrypt
140596295451072:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:536:
I noticed that if I add -nopad, then I get no error, but my resulted decrypted data is gibberish.
linux ubuntu openssl
1
I'm not sure why someone down-voted - I'd love a comment if I'm doing something dumb here - thanks!
â chrisputnam9
Jun 8 at 13:53
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Previously, I was encrypting with:
openssl des3 -salt -in $INSECURE_CONFIG_FILE -out $CONFIG_FILE -pass pass:$PASSWORD
and decrypting with:
openssl des3 -d -salt -in $CONFIG_FILE -out $INSECURE_CONFIG_FILE -pass pass:$PASSWORD
I've found lots of mention of specifying -md md5 since the new default is sha256, but even with the following, I am still unable to decrypt my previously encrypted files:
openssl des3 -d -salt -md md5 -in $CONFIG_FILE -out $INSECURE_CONFIG_FILE -pass pass:$PASSWORD
I get the following error:
bad decrypt
140596295451072:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:536:
I noticed that if I add -nopad, then I get no error, but my resulted decrypted data is gibberish.
linux ubuntu openssl
Previously, I was encrypting with:
openssl des3 -salt -in $INSECURE_CONFIG_FILE -out $CONFIG_FILE -pass pass:$PASSWORD
and decrypting with:
openssl des3 -d -salt -in $CONFIG_FILE -out $INSECURE_CONFIG_FILE -pass pass:$PASSWORD
I've found lots of mention of specifying -md md5 since the new default is sha256, but even with the following, I am still unable to decrypt my previously encrypted files:
openssl des3 -d -salt -md md5 -in $CONFIG_FILE -out $INSECURE_CONFIG_FILE -pass pass:$PASSWORD
I get the following error:
bad decrypt
140596295451072:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:536:
I noticed that if I add -nopad, then I get no error, but my resulted decrypted data is gibberish.
linux ubuntu openssl
edited Jun 27 at 4:58
muru
33.2k576140
33.2k576140
asked Jun 7 at 15:50
chrisputnam9
61
61
1
I'm not sure why someone down-voted - I'd love a comment if I'm doing something dumb here - thanks!
â chrisputnam9
Jun 8 at 13:53
add a comment |Â
1
I'm not sure why someone down-voted - I'd love a comment if I'm doing something dumb here - thanks!
â chrisputnam9
Jun 8 at 13:53
1
1
I'm not sure why someone down-voted - I'd love a comment if I'm doing something dumb here - thanks!
â chrisputnam9
Jun 8 at 13:53
I'm not sure why someone down-voted - I'd love a comment if I'm doing something dumb here - thanks!
â chrisputnam9
Jun 8 at 13:53
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448459%2fon-ubuntu-18-04-openssl-1-1-0g-cant-decrypt-files-even-with-md5%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
I'm not sure why someone down-voted - I'd love a comment if I'm doing something dumb here - thanks!
â chrisputnam9
Jun 8 at 13:53