title: How to use BouncyCastle for calculating Message Digests?
body: <p>I'm currently playing around with Java and hashing.</p>
  
  <p>I came across <a href="http://www.bouncycastle.org/" rel="nofollow">bouncycastle</a> when I was looking around online, I got it installed in my IDE and everything.</p>
  
  <p>But, how do I use it to hash a text using the algorithms found <a href="https://www.bouncycastle.org/specifications.html" rel="nofollow">here</a>? (Look for section 5.2 Algorithms)</p>
  
  <p>I only want to use the digest algorithms as defined in this section:</p>
  
  <blockquote>
    <p>GOST3411 - MD2 - MD4 - MD5 - RipeMD128 - RipeMD160 - RipeMD256 - RipeMD320 - SHA1 - SHA-224 - SHA-256 - SHA-384 - SHA-512 - SHA3-224 - SHA3-256 - SHA3-384 - SHA3-512 - Skein-256-* - Skein-512-* - Skein-1024-* - Tiger - Whirlpool</p>
  </blockquote>