Top-rated recipes tagged "sha512"http://code.activestate.com/recipes/tags/sha512/top/2013-03-03T18:05:42-08:00ActiveState Code RecipesSave and restore SHA-512 internal state (Python)
2013-03-03T18:05:42-08:00Dima Tisnekhttp://code.activestate.com/recipes/users/4068698/http://code.activestate.com/recipes/578479-save-and-restore-sha-512-internal-state/
<p style="color: grey">
Python
recipe 578479
by <a href="/recipes/users/4068698/">Dima Tisnek</a>
(<a href="/recipes/tags/database/">database</a>, <a href="/recipes/tags/inner/">inner</a>, <a href="/recipes/tags/pickle/">pickle</a>, <a href="/recipes/tags/restore/">restore</a>, <a href="/recipes/tags/sha512/">sha512</a>, <a href="/recipes/tags/state/">state</a>).
</p>
<p>If you have a very long input to hash, you may want to save your progress.</p>
<p>CPython doesn't normally let you, but it's easy to hack around via ctypes</p>
Checking hashes of files (Ruby)
2012-11-19T08:45:51-08:00greg zakharovhttp://code.activestate.com/recipes/users/4184115/http://code.activestate.com/recipes/578339-checking-hashes-of-files/
<p style="color: grey">
Ruby
recipe 578339
by <a href="/recipes/users/4184115/">greg zakharov</a>
(<a href="/recipes/tags/hash/">hash</a>, <a href="/recipes/tags/ironruby/">ironruby</a>, <a href="/recipes/tags/md5/">md5</a>, <a href="/recipes/tags/ripemd160/">ripemd160</a>, <a href="/recipes/tags/sha1/">sha1</a>, <a href="/recipes/tags/sha256/">sha256</a>, <a href="/recipes/tags/sha384/">sha384</a>, <a href="/recipes/tags/sha512/">sha512</a>).
</p>
<p>There is HashAlgorithm class in System.Security.Cryptography namespace which is stored into mscorlib, a core assembly of .NET Framework. So...</p>