Check/verify decryption secret for OpenSSL
<p>On a unix system, I encrypt a file <code>file1</code> using OpenSSL AES-256-CBC: <code>openssl aes-256-cbc -a -salt -in file1 -out file1.enc -k secret</code></p>

<p>The decryption is done via <code>openssl aes-256-cbc -d -a -in file1.enc -out file1.dec -k secret</code></p>

<p><strong>Is there a way to verify that, before actually starting the decryption process, the secret is correct?</strong></p>

<p>My research has not shown any helpful results so far.</p>