<div dir="ltr"><div><div><div>Wow ! thanks<br><br></div>openssl -md md5 ...<br></div>does the trick. All my docs are back now. <br></div>That was a great help Double  thanks to Jeff.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 11, 2017 at 7:05 PM, Jeffrey Walton <span dir="ltr"><<a href="mailto:noloader@gmail.com" target="_blank">noloader@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">>  I have two systems one with openssl 1.0.1e (debian wheezy) and the new one<br>
> with openssl 1.1.0c (debian stretch)<br>
><br>
>  The files encrypted with 1.0.1e are not decryptable via 1.1.0c<br>
> These are the investigations I have done<br>
><br>
> on my system with 1.0.1e openssl<br>
> $ echo some text > file<br>
> $ cat file  | openssl  aes-256-cbc  -pass pass:test  > file.enc<br>
> $ md5sum file.enc<br>
> 5482ea53a6677865d1e559ac305773<wbr>8c  file.enc<br>
><br>
> when I bring that file over to my system with 1.1.0c openssl<br>
> $ md5sum file.enc<br>
> 5482ea53a6677865d1e559ac305773<wbr>8c  file.enc<br>
> $ cat file.enc | openssl  aes-256-cbc  -d -pass pass:test<br>
> bad decrypt<br>
> 4146981184:error:06065064:<wbr>digital envelope routines:EVP_DecryptFinal_ex:<wbr>bad<br>
> decrypt:crypto/evp/evp_enc.c:<wbr>529:<br>
><br>
> Please can someone tell me what other options I Am supposed to pass to get<br>
> decryption done successfully.<br>
<br>
</span>From the OpenSSL 1.1.0c-3 update notes. I don't believe its in the<br>
'openssl enc' man page yet<br>
(<a href="https://www.openssl.org/docs/man1.0.1/apps/enc.html" rel="noreferrer" target="_blank">https://www.openssl.org/docs/<wbr>man1.0.1/apps/enc.html</a>).<br>
<br>
  The openssl enc command changed the default digest (used to create the key<br>
  from passphrase) from MD5 to SHA256 since the version 1.1.0. The digest can<br>
  be specified with the -md option.<br>
<br>
Jeff<br>
<span class="HOEnZb"><font color="#888888">--<br>
openssl-users mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer" target="_blank">https://mta.openssl.org/<wbr>mailman/listinfo/openssl-users</a><br>
</font></span></blockquote></div><br></div>