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

The name of the pictureThe name of the pictureThe name of the pictureClash 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.







share|improve this question

















  • 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














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.







share|improve this question

















  • 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












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.







share|improve this question













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.









share|improve this question












share|improve this question




share|improve this question








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












  • 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















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)