Jump to content

Recommended Posts

Posted

<div class="KonaBody"><p>An alternative to <a href="http://osxdaily.com/2012/02/05/check-sha1-checksum-in-mac-os-x/">checking a SHA1 hash with shasum</a> is to use openssl. Yes, the same openssl utility used to <a href="http://osxdaily.com/2012/01/30/encrypt-and-decrypt-files-with-openssl/">encrypt files</a> can be used to verify the validity of files. </p>

<p>The syntax is quite similar to the shasum command, but you do need to specify ‘sha1′ as the specific algorithm:</p>

<p><code>openssl sha1 /path/to/filename</code></p>

<p>To verify a file on the desktop, the command would look like this:</p>

<p><code>openssl sha1 ~/Desktop/DownloadedFile.dmg</code></p>

<p>The output isn’t quite as nice as shasum, but it remains easy to interpret:</p>

<p><code>$ openssl sha1 ~/Desktop/DownloadedFile.dmg

SHA1(/Users/OSXDaily/Desktop/DownloadedFile.dmg)= ba33b60954960b0836daac20b98abd25a21618da3</code></p>

<p>For the average user, there isn’t much advantage to use openssl over shasum when verifying checksums, so it’s mostly a matter of habit and whichever is most convenient.</p>

<p><em>Thanks to those readers who recommended this.</em></p>

</div>

<p><a href="http://feedads.g.doubleclick.net/~a/338hn_ovHDucS5ACfbcBvjaOxvA/0/da"><img src="http://feedads.g.doubleclick.net/~a/338hn_ovHDucS5ACfbcBvjaOxvA/0/di" border="0" ismap="true"></img></a><br/>

<a href="http://feedads.g.doubleclick.net/~a/338hn_ovHDucS5ACfbcBvjaOxvA/1/da"><img src="http://feedads.g.doubleclick.net/~a/338hn_ovHDucS5ACfbcBvjaOxvA/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">

<a href="http://feeds.feedburner.com/~ff/osxdaily?a=Ei1WVQFdzi4:WFPcbKzFLFY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=Ei1WVQFdzi4:WFPcbKzFLFY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=Ei1WVQFdzi4:WFPcbKzFLFY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=Ei1WVQFdzi4:WFPcbKzFLFY:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=Ei1WVQFdzi4:WFPcbKzFLFY:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=Ei1WVQFdzi4:WFPcbKzFLFY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=Ei1WVQFdzi4:WFPcbKzFLFY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=qj6IDK7rITs" border="0"></img></a>

</div><img src="http://feeds.feedburner.com/~r/osxdaily/~4/Ei1WVQFdzi4" height="1" width="1"/>

 

View the full article

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days


×
×
  • Create New...